/* V34.2.161 - distinct profile and history views for bottle debt */
.af-bottle-profile-dialog,.af-bottle-ledger-dialog{box-sizing:border-box;overflow-y:auto;overscroll-behavior:contain}
.af-bottle-profile-dialog .bottle-debt-detail-summary{grid-template-columns:repeat(3,minmax(0,1fr))}
.af-bottle-profile-dialog .bottle-debt-detail-summary article{min-width:0}
.af-bottle-profile-dialog .bottle-debt-detail-summary article:first-child{grid-column:auto}
.af-bottle-profile-dialog .bottle-debt-detail-summary strong{font-size:1.12rem;overflow-wrap:anywhere}
.af-bottle-profile-status{display:inline-flex;width:fit-content;margin:0;padding:7px 11px;border-radius:12px;background:#fff7e9;color:#98621a;font-weight:800;font-size:.82rem}
.af-bottle-profile-status[data-status="verified"]{background:#eaf9f1;color:#138257}
.af-bottle-profile-facts{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}
.af-bottle-profile-facts>div{display:grid;gap:4px;padding:11px 13px;border:1px solid #dce8f2;border-radius:14px;background:#f8fbfe;min-width:0}
.af-bottle-profile-facts small{color:#70859a;font-weight:750;font-size:.75rem}
.af-bottle-profile-facts strong{color:#183752;font-size:.95rem;overflow-wrap:anywhere}
.af-bottle-profile-note,.af-bottle-ledger-hint{margin:0;color:#678098;font-size:.8rem;line-height:1.5}
.af-bottle-ledger-toolbar{display:flex;align-items:end;justify-content:space-between;gap:12px}
.af-bottle-ledger-toolbar>span{font-weight:850;color:#116cd2}
.af-bottle-ledger-toolbar label{display:grid;gap:4px;color:#597089;font-size:.75rem;font-weight:700}
.af-bottle-ledger-toolbar select{min-height:43px;min-width:145px;border:1px solid #cbdaea;border-radius:12px;padding:7px 10px;background:#fff;color:#16344d;font-size:.9rem}
.af-bottle-ledger-dialog .bottle-debt-detail-history{max-height:none;overflow:visible}
.af-bottle-ledger-dialog .bottle-debt-history-row{align-items:start}
.af-bottle-ledger-dialog .bottle-debt-history-row small,.af-bottle-ledger-dialog .bottle-debt-history-row p{overflow-wrap:anywhere}
.af-bottle-ledger-dialog .dialog-actions{display:flex}
.af-bottle-ledger-dialog .dialog-actions>.btn{flex:1;min-height:46px}
@media(max-width:640px){
 .af-bottle-profile-dialog,.af-bottle-ledger-dialog{inset:auto 0 0 0;margin:0;width:100%;max-width:100%;height:calc(100dvh - env(safe-area-inset-top,0px));max-height:calc(100dvh - env(safe-area-inset-top,0px));border-radius:20px 20px 0 0;padding-bottom:env(safe-area-inset-bottom,0px)}
 .af-bottle-profile-dialog .bottle-debt-detail-summary{grid-template-columns:repeat(2,minmax(0,1fr))}
 .af-bottle-profile-dialog .bottle-debt-detail-summary article:first-child{grid-column:1/-1}
 .af-bottle-profile-dialog .bottle-debt-detail-summary strong{font-size:1.16rem}
 .af-bottle-ledger-toolbar{flex-wrap:wrap}
 .af-bottle-ledger-dialog .bottle-debt-history-row{flex-wrap:wrap}
 .af-bottle-ledger-dialog .bottle-debt-history-delta{max-width:100%;white-space:normal}
}
