/* R123 — Payment Collection + bilingual internal UI. Additive only. */
.r123-language-setting{display:flex;align-items:center;justify-content:flex-start;gap:12px;padding:2px 2px 12px;margin:0 0 12px;border-bottom:1px solid rgba(124,90,163,.13);color:#62586c;font-size:10px;font-weight:800}
.r123-language-menu-wrap{position:relative;display:inline-flex;align-items:center}
.side-foot .r123-language-code-btn{width:auto!important;min-width:45px!important;height:29px!important;margin:0!important;padding:0 8px!important;border:1px solid rgba(126,91,165,.17);border-radius:8px;background:rgba(255,255,255,.70);color:#7141bf;font-size:9px;font-weight:900;display:inline-flex;align-items:center;justify-content:center;gap:4px;box-shadow:0 2px 7px rgba(75,50,94,.035)}
.r123-language-code-btn:hover{background:#fff;border-color:rgba(113,65,191,.28)}
.r123-language-chevron{color:#96899f;transform:translateY(-1px)}
.r123-language-menu{position:absolute;left:0;bottom:35px;width:158px;padding:6px;background:#fff;border:1px solid #e4dbea;border-radius:11px;box-shadow:0 16px 40px rgba(58,38,82,.16);z-index:130}
.r123-language-menu button{width:100%;border:0;background:transparent;border-radius:8px;padding:9px 10px;color:#504656;font-size:10px;font-weight:750;text-align:left;display:flex;align-items:center;justify-content:space-between;gap:10px}
.r123-language-menu button:hover,.r123-language-menu button.active{background:#f4eefb;color:#6d43aa}
.r123-language-check{font-weight:900}
.r123-mobile-language-card{display:none}
.r123-mobile-language-row{width:100%;border:0;background:transparent;padding:0;display:flex;align-items:center;justify-content:space-between;gap:14px;text-align:left;color:var(--ink)}
.r123-mobile-language-row b{display:block;font-size:12px;margin-bottom:3px}.r123-mobile-language-row small{display:block;color:var(--muted);font-size:9px;line-height:1.4}
.r123-mobile-language-value{display:flex;align-items:center;gap:8px;color:#716779;font-size:10px;font-weight:800;white-space:nowrap}.r123-mobile-language-value>span:last-child{font-size:17px;color:#a094a8;font-weight:400}
.r123-language-sheet{position:fixed;inset:0;z-index:260;background:rgba(39,30,45,.27);display:flex;align-items:flex-end;padding:0}
.r123-language-sheet-card{width:100%;background:#fff;border-radius:18px 18px 0 0;box-shadow:0 -18px 50px rgba(42,31,50,.16);padding:10px 13px calc(16px + env(safe-area-inset-bottom))}
.r123-language-sheet-handle{width:38px;height:4px;border-radius:99px;background:#ddd5e1;margin:0 auto 12px}.r123-language-sheet-card h3{font-size:14px;margin:0 3px 10px}
.r123-language-sheet-card button{width:100%;border:0;background:transparent;border-radius:11px;display:flex;align-items:center;justify-content:space-between;padding:13px 11px;color:#443a4b;font-size:11px;font-weight:800;text-align:left}.r123-language-sheet-card button.active{background:#f5effb;color:#6c42aa}

.r123-collection-main{min-width:0}.r123-collection-paid{font-size:9.5px;color:var(--muted);margin-top:4px}.r123-collection-right{min-width:245px;text-align:right}.r123-collection-balance{font-size:12px;font-weight:900}.r123-collection-caption{display:block;margin-top:2px;color:var(--muted);font-size:8px;font-weight:700;text-transform:uppercase;letter-spacing:.04em}.r123-collection-tags{display:flex;justify-content:flex-end;align-items:center;gap:6px;flex-wrap:wrap;margin-top:6px}.r123-collection-tag{display:inline-flex;align-items:center;border-radius:999px;padding:4px 7px;border:1px solid #e6e1e7;background:#f3f2f3;color:#646066;font-size:8.5px;font-weight:800}.r123-collection-tag.no-date{background:#fff7e8;color:#956726;border-color:#f2e3c4}.r123-collection-tag.overdue{background:#fdecef;color:#b74e58;border-color:#f3d5d9}.r123-collection-tag.due-soon{background:#fff4dd;color:#a46b15;border-color:#f0dfb8}.r123-collection-actions{display:flex;justify-content:flex-end;margin-top:6px}.r123-collection-actions .btn{min-height:29px;padding:5px 8px;font-size:9px}

.r123-reminder-dialog{width:min(560px,100%)}.r123-reminder-head{display:flex;align-items:flex-start;justify-content:space-between;gap:12px}.r123-reminder-head h3{margin:0 0 4px;font-size:15px}.r123-reminder-head p{margin:0;color:var(--muted);font-size:10px;line-height:1.45}.r123-reminder-summary{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin:13px 0}.r123-reminder-summary>div{border:1px solid #eee7f2;border-radius:11px;background:#fcfbfd;padding:10px}.r123-reminder-summary span{display:block;color:var(--muted);font-size:8px;margin-bottom:3px}.r123-reminder-summary b{font-size:12px}.r123-detected-box{margin-bottom:13px;padding:10px 11px;border:1px solid #e5dded;border-radius:11px;background:#faf8fc}.r123-detected-head{display:flex;align-items:center;justify-content:space-between;gap:10px}.r123-detected-head b{font-size:9.5px}.r123-detected-head span{padding:3px 6px;border-radius:999px;background:#efecf1;color:#746b7a;font-size:7.5px;font-weight:850;text-transform:uppercase}.r123-detected-text{margin-top:5px;color:#817788;font-size:8.8px;line-height:1.45}.r123-reminder-fields{display:grid;grid-template-columns:1fr 1fr;gap:10px}.r123-reminder-fields .field{min-width:0}.r123-reminder-fields .field input{width:100%}.r123-reminder-fields .field small{display:block;margin-top:5px;color:var(--muted);font-size:8.5px;line-height:1.4}.r123-date-human{min-height:17px;margin-top:5px;color:#5f5567;font-size:9px;font-weight:750;line-height:1.4}.payment-entry>.r123-date-human{margin:5px 0 8px}.r123-date-human.valid{color:#4d6f5a}.r123-date-human.invalid{color:var(--danger)}.r123-mismatch-box{margin-top:11px;padding:10px 11px;border:1px solid #f0d1d5;border-radius:10px;background:#fff3f4;color:#7a3c43;font-size:9px;line-height:1.5}.r123-mismatch-box b{display:block;margin-bottom:4px}.r123-mismatch-box label{display:flex;align-items:flex-start;gap:6px;margin-top:7px;font-weight:750}.r123-mismatch-box input{margin-top:2px}.r123-reminder-note{margin-top:11px;color:#817788;font-size:8.7px;line-height:1.5}

@media(max-width:800px){
  .r123-language-setting{display:none}.r123-mobile-language-card{display:block!important;margin-bottom:12px}.r123-reminder-fields{grid-template-columns:1fr}.r123-reminder-summary{grid-template-columns:1fr 1fr}.r123-collection-right{min-width:0;text-align:left}.r123-collection-tags,.r123-collection-actions{justify-content:flex-start}.collection-row{grid-template-columns:1fr!important;gap:9px!important}
}
@media(max-width:430px){.r123-reminder-summary{grid-template-columns:1fr}.r123-reminder-dialog{padding:15px!important}.r123-reminder-head{gap:8px}.r123-reminder-head .btn{min-height:34px;padding:7px 9px}}
