.customer-account .panel-title{gap:1rem;align-items:flex-start;flex-wrap:wrap}
.customer-account .doc-actions{flex-wrap:wrap}
.customer-account-summary{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:1rem;margin:1.2rem 0}
.customer-account-summary .metric{min-width:0;border:1px solid var(--line);border-radius:.7rem;padding:1.15rem;background:var(--soft)}
.customer-account-summary .metric strong{display:block;font-size:1.7rem;margin:.55rem 0;overflow-wrap:anywhere}
.customer-account-summary .metric small{color:var(--muted)}
.customer-account-tabs{display:flex;align-items:center;gap:.5rem;border-bottom:1px solid var(--line);padding:.25rem 0 .75rem;margin-bottom:1.25rem;flex-wrap:wrap}
.customer-account-tabs>button.active{background:var(--soft);border-color:var(--green,#285fad);color:var(--green,#285fad);font-weight:700}
.customer-account-more{position:relative;margin-left:auto}
.customer-account-more>summary{cursor:pointer;padding:.65rem .8rem;border:1px solid var(--line);border-radius:.5rem}
.customer-account-more>div{position:absolute;right:0;top:100%;z-index:8;background:var(--panel,var(--soft));border:1px solid var(--line);padding:.6rem;border-radius:.5rem;min-width:13rem;box-shadow:0 5px 16px #0002;display:grid;gap:.4rem}
.customer-account-more:not([open])>div{display:none}
.customer-account-more>div>button{text-align:left}
.customer-account-content{min-width:0;display:grid;gap:1.2rem;align-items:start}
.customer-account-content.has-payment-detail{grid-template-columns:minmax(0,1fr) minmax(19rem,.8fr)}
.customer-account-main,.customer-account-detail{min-width:0}
.customer-account-main>.panel{padding:1.2rem}
.customer-account-attention-row{display:flex;justify-content:space-between;align-items:center;gap:1rem;padding:.75rem 0;border-bottom:1px solid var(--line)}
.customer-account-attention-row>div{min-width:0}
.customer-account-attention-row strong{overflow-wrap:anywhere}
.customer-account-attention-row small{display:block;color:var(--muted);margin-top:.35rem;font-size:.75rem}
.customer-account-overview .panel{padding:1.2rem}
.customer-account-overview{margin-bottom:1.2rem}
.customer-account-overview h3,.customer-account-main h3{margin-top:0}
.customer-payment-cards{display:grid;gap:1rem}
.customer-payment-card,.customer-payment-detail{border:1px solid var(--line);border-radius:.7rem;padding:1.15rem;min-width:0;background:var(--panel,transparent)}
.customer-payment-card.is-reversed{border-style:dashed}
.customer-payment-header{display:flex;justify-content:space-between;align-items:flex-start;gap:.75rem}
.customer-payment-header>div{min-width:0}
.customer-payment-header h3{margin:0 0 .45rem;overflow-wrap:anywhere}
.customer-payment-detail [data-account-payment-heading]{scroll-margin-top:7rem}
.customer-payment-detail [data-account-payment-heading]:focus-visible{outline:2px solid var(--green);outline-offset:5px}
.customer-payment-header p{margin:.3rem 0}
.customer-payment-status{color:var(--muted);font-size:.75rem}
.customer-payment-meta{color:var(--muted);font-size:.8rem;overflow-wrap:anywhere}
dl.customer-payment-meta{display:grid;gap:.6rem}
.customer-payment-meta dt{font-size:.75rem}
.customer-payment-meta dd{margin:.2rem 0;color:var(--text)}
.customer-payment-amount{display:block;font-size:1.5rem;margin:.8rem 0;overflow-wrap:anywhere}
.customer-payment-totals{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.8rem;margin:1rem 0}
.customer-payment-totals>div{min-width:0}
.customer-payment-totals dt{font-size:.72rem;color:var(--muted);margin-bottom:.3rem}
.customer-payment-totals dd{margin:0;font-weight:600;overflow-wrap:anywhere}
.customer-payment-actions{display:flex;flex-wrap:wrap;gap:.5rem;margin-top:.9rem}
.customer-payment-section{padding:.8rem 0;border-top:1px solid var(--line);margin-top:1rem}
.customer-payment-section h4{margin:.35rem 0 .8rem}
.customer-payment-allocation{padding:.6rem 0;border-bottom:1px solid var(--line)}
.customer-payment-allocation p,.customer-payment-refund{font-size:.75rem;color:var(--muted);overflow-wrap:anywhere}
.customer-payment-notice,.customer-payment-empty{padding:.8rem;border:1px solid var(--line);border-radius:.5rem;font-size:.8rem;line-height:1.5;overflow-wrap:anywhere}
.customer-account-payment-list>.panel-title{margin-bottom:1rem}
@media(max-width:1100px){.customer-account-content.has-payment-detail{grid-template-columns:1fr}.customer-account-content.has-payment-detail>.customer-account-detail{grid-row:1}}
@media(max-width:650px){.customer-account-summary{grid-template-columns:1fr;gap:.65rem}.customer-account-summary .metric{padding:.9rem}.customer-account-summary .metric strong{font-size:1.4rem}.customer-account-tabs{gap:.35rem}.customer-account-tabs>button{padding:.6rem}.customer-account-more>summary{padding:.6rem}.customer-payment-header{flex-wrap:wrap}.customer-payment-actions>*{flex:1 1 auto}.customer-account-overview .panel,.customer-account-main>.panel{padding:1rem}}
.customer-account>section.panel{padding:1rem;margin-top:1rem}
.customer-account>section.panel>h3{margin:0 0 .8rem}
.customer-account-metrics{grid-template-columns:repeat(4,minmax(0,1fr))}
.customer-account .metric small{display:block;line-height:1.45}
.customer-account table small{display:block;max-width:32rem;white-space:normal}
.customer-account-allocation-list{display:grid;gap:.65rem;max-height:45vh;overflow:auto;padding:.25rem}
.customer-account-allocation{display:grid;grid-template-columns:minmax(0,1fr) minmax(7rem,10rem) minmax(7rem,10rem);gap:.5rem .75rem;align-items:center;border-bottom:1px solid var(--line,#cbd5e1);padding:.5rem 0}
.customer-account-allocation[hidden]{display:none!important}
.customer-account-allocation>label{display:grid;gap:.3rem}
.customer-account-allocation-list small{display:block;font-weight:normal}
.customer-account-allocation-list input{width:100%;min-width:0}
.payment-proof-picker{margin-top:1rem;padding:1rem;border:1px solid var(--line);border-radius:.5rem}
.payment-proof-picker input[type=file]{max-width:100%}
.payment-proof-draft-list,.payment-proof-files{list-style:none;padding:0;margin:.8rem 0;display:grid;gap:.7rem}
.payment-proof-draft-list li,.payment-proof-files li{display:flex;align-items:center;gap:.75rem;flex-wrap:wrap;padding:.6rem;border-bottom:1px solid var(--line);overflow-wrap:anywhere}
.payment-proof-draft-list li>span,.payment-proof-files li>span:first-of-type{flex:1;min-width:0}
.payment-proof-files small,.payment-proof-draft-list small{display:block;color:var(--muted);font-size:.8rem}
.payment-proof-files li>.payment-proof-file-identity{flex:1 1 12rem;min-width:0}
.payment-proof-file-actions{display:flex;gap:.9rem;flex-wrap:wrap}
.payment-proof-keep{display:flex;align-items:center;gap:.4rem}.payment-proof-keep input{width:auto}
.customer-account-proof h3{margin:1.2rem 0 .7rem}.customer-account-proof .form-actions{flex-wrap:wrap}
.customer-account-proof .payment-proof-reason,.payment-proof-picker>label{display:grid;gap:.5rem;min-width:0}
.customer-account-proof .payment-proof-reason input{width:100%;min-width:0;box-sizing:border-box;font:inherit}
.customer-account-statement-summary{margin:1rem 0;border:1px solid var(--line);border-radius:.5rem;padding:.7rem .9rem}
.customer-account-statement-summary>summary{cursor:pointer;color:var(--muted);font-size:.85rem}
.customer-account-statement-summary .customer-account-summary{margin:.8rem 0 0}
.invoice-customer-money{display:flex;gap:.8rem 1.5rem;flex-wrap:wrap;margin:1rem 0;min-width:0}
.invoice-customer-money>div{display:grid;gap:.3rem;min-width:0}
.invoice-customer-money span,.invoice-customer-money small{font-size:.8rem;color:var(--muted)}
.invoice-customer-money strong{font-variant-numeric:tabular-nums;overflow-wrap:anywhere}
.invoice-customer-money small{flex-basis:100%}
.receipt-vat-fields{margin-top:.75rem}.receipt-vat-preview{padding:.8rem 1rem;border:1px solid var(--line);border-radius:.5rem;margin:.8rem 0}.receipt-vat-preview .total-row{gap:1rem}.customer-account-vat details{margin-top:1.2rem}.customer-account-vat details section{border-top:1px solid var(--line);padding:.8rem 0}
.payment-proof-history{margin-top:1.2rem;border-top:1px solid var(--line);padding-top:1rem}.payment-proof-history summary{cursor:pointer}
.payment-proof-history section{padding:1rem 0;border-bottom:1px solid var(--line)}.payment-proof-history h4{margin:0}
@media(max-width:900px){.customer-account-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:520px){.customer-account-metrics{grid-template-columns:1fr}.customer-account-allocation{grid-template-columns:repeat(2,minmax(0,1fr))}.customer-account-allocation>div{grid-column:1/-1}.customer-account .doc-actions button{flex:1 1 auto}}
.customer-account-summary .metric>button{padding:0;border:0;background:transparent;text-align:left;font-size:.85rem;text-decoration:underline;text-underline-offset:.2rem;line-height:1.4;color:var(--ink)}
.customer-account-filters{display:grid;grid-template-columns:minmax(12rem,2fr) repeat(3,minmax(7rem,1fr)) auto;align-items:end;gap:.65rem;margin:.9rem 0}
.customer-account-filters label{display:grid;gap:.35rem;min-width:0;font-size:.8rem}
.customer-account-filters input,.customer-account-filters select{width:100%;min-width:0;border:1px solid var(--line);border-radius:.45rem;padding:.6rem;color:var(--ink);background:var(--soft);font:inherit}
.customer-payment-card{padding:.85rem 1rem}
.customer-payment-card .customer-payment-header h3{font-size:1rem;margin-bottom:.2rem}
.customer-payment-compact-amounts{display:flex;justify-content:space-between;align-items:baseline;gap:.5rem 1rem;flex-wrap:wrap}
.customer-payment-compact-amounts .customer-payment-amount{font-size:1.2rem;margin:.5rem 0}
.customer-payment-compact-amounts>span{font-size:.8rem;color:var(--muted)}
.customer-payment-compact-amounts>span>strong{color:var(--ink);white-space:nowrap}
.customer-payment-breakdown>summary{cursor:pointer;color:var(--muted);font-size:.8rem;padding:.35rem 0}
.customer-payment-breakdown .customer-payment-totals{margin:.6rem 0}
.customer-payment-card .customer-payment-actions{margin-top:.5rem}
.customer-account-history .account-history-amount{font-weight:600;white-space:nowrap;text-align:right}
.customer-account-history .account-history-amount small{font-weight:400;white-space:normal}
.customer-account-history .account-history-actions{display:flex;gap:.4rem;flex-wrap:wrap}
.customer-account-saved{padding:.75rem;max-width:42rem}.customer-account-saved h3{margin:0 0 .75rem}.customer-account-saved .form-actions{flex-wrap:wrap}
@media(max-width:1100px){.customer-account-filters{grid-template-columns:repeat(3,minmax(0,1fr))}.customer-account-filters>label:first-child{grid-column:1/-1}}
@media(max-width:650px){
 .payment-proof-files li{display:grid;grid-template-columns:minmax(0,1fr);gap:.65rem;padding:.8rem 0}
 .payment-proof-files li>.payment-proof-file-identity{grid-row:1;overflow-wrap:anywhere}
 .payment-proof-files .payment-proof-keep{justify-self:start}
 .payment-proof-files .payment-proof-file-actions{gap:.5rem 1rem;min-width:0}
 .payment-proof-file-actions a{display:inline-flex;align-items:center;min-height:44px;white-space:normal}
 .payment-proof-picker{padding:.8rem}.payment-proof-picker input[type=file]{min-width:0;width:100%}
 .customer-account-proof .payment-proof-reason input{min-height:44px;font-size:16px}
 .customer-account-proof .form-actions>*{white-space:normal;max-width:100%;min-height:44px}
 .invoice-customer-money{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.8rem}
 .invoice-customer-money small{grid-column:1/-1}
 .customer-account-filters{grid-template-columns:repeat(2,minmax(0,1fr))}.customer-account-filters>button{align-self:end}.customer-account-filters input,.customer-account-filters select{font-size:16px}
 .customer-account-history .table-wrap{overflow:visible}.customer-account-history table,.customer-account-history tbody{display:block;min-width:0;width:100%}.customer-account-history thead{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}
 .customer-account-history tr{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:.55rem .8rem;border:1px solid var(--line);border-radius:.6rem;padding:.8rem;margin:.65rem 0}
 .customer-account-history td{display:block;min-width:0;border:0;padding:0;white-space:normal;overflow-wrap:anywhere}.customer-account-history td::before{content:attr(data-label);display:block;font-size:.7rem;font-weight:400;color:var(--muted);margin-bottom:.25rem}
 .customer-account-history td:nth-child(2),.customer-account-history td:nth-child(4),.customer-account-history td.account-history-actions{grid-column:1/-1}.customer-account-history td.account-history-amount{grid-column:2;grid-row:1;text-align:right;white-space:nowrap}
 .customer-account-history .account-history-actions::before{flex-basis:100%}.customer-account-history .account-history-actions button{flex:1 1 auto;font-size:.8rem;padding:.65rem}
 .customer-payment-card .customer-payment-actions>button{padding:.65rem .8rem}.customer-account .panel-title{gap:.7rem}
}
