.dm-teacher-tabs376{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin:20px 0}.dm-teacher-tabs376 button{border:1px solid var(--dm-border,#ddd);border-radius:12px;padding:13px 8px;background:var(--dm-surface,#fff);color:var(--dm-ink,#29223c);font-weight:700;white-space:normal}.dm-teacher-tabs376 [aria-selected=true]{background:var(--dm-primary,#6744d9);color:#fff}.dm-teacher-tabpanel376[hidden]{display:none!important}.dm-teacher-finance-head376{display:flex;align-items:center;flex-wrap:wrap;gap:10px;margin:10px 0 20px}.dm-teacher-finance-head376 h3{flex:1 1 100%}.dm-teacher-agreement-brief376{padding:14px;border:1px solid var(--dm-border,#ddd);border-radius:12px;margin-bottom:20px}.dm-teacher-agreement-brief376 strong{display:block;margin:8px 0}.dm-teacher-agreement-brief376 details{margin-top:12px}.dm-master-debt-months376{display:block;max-width:240px;line-height:1.5!important;overflow-wrap:anywhere;text-align:right;margin-top:8px}.dm-teacher-debts376{display:grid;gap:12px}.dm-teacher-debts376 article{padding:16px;border:1px solid var(--dm-border,#ddd);border-radius:12px;min-width:0}.dm-teacher-debts376 h4{margin:0 0 10px}.dm-teacher-debts376 .btn{display:block;margin-top:12px;white-space:normal}.dm-teacher-liabilities376 .panel-body>.kpi-grid{margin-bottom:20px}#dmTeacherDebts376{min-width:0}@media(max-width:700px){html body #modalWrap .teacher-profile-modal>.teacher-profile-head{display:flex!important;flex-wrap:wrap!important;align-items:center!important;gap:12px!important;margin-top:0!important;padding:0 0 18px!important}.teacher-profile-head .grow{min-width:0}.teacher-profile-head h2{overflow-wrap:anywhere}.teacher-profile-access-state{max-width:100%}.dm-teacher-tabs376{gap:5px}.dm-teacher-tabs376 button{font-size:12px;padding:12px 5px}.dm-master-debt-months376{max-width:160px}.dm-teacher-debts376 .btn{width:100%}.dm-teacher-finance-head376 .btn{flex:1 1 100%}.dm-teacher-tabpanel376 .teacher-profile-actions{display:flex;flex-wrap:wrap;gap:8px;margin-top:16px}.dm-teacher-tabpanel376 .teacher-profile-actions .btn{flex:1 1 auto}}
html body #modalWrap .modal:has(.teacher-profile-modal){display:flex!important;flex-direction:column!important;overflow:hidden!important;min-height:0!important;max-height:calc(100dvh - 24px - env(safe-area-inset-top,0px) - env(safe-area-inset-bottom,0px))!important}html body #modalWrap .modal:has(.teacher-profile-modal)>.modal-head,html body #modalWrap .modal:has(.teacher-profile-modal)>.modal-foot{position:relative!important;inset:auto!important;flex:0 0 auto!important;margin:0!important;transform:none!important}html body #modalWrap .modal>.teacher-profile-modal{flex:1 1 auto!important;min-height:0!important;overflow-y:auto!important;overflow-x:hidden!important;max-height:none!important;transform:none!important;animation:none!important}html body #modalWrap .teacher-profile-modal>.teacher-profile-head{position:relative!important;inset:auto!important;transform:none!important;animation:none!important}.teacher-profile-contact,.teacher-profile-access-state small{overflow-wrap:anywhere;white-space:normal;max-width:100%}.dm-master-pay>div{min-width:0}.dm-master-debt-months376{white-space:normal!important}
