.dm-saved-agreement375{padding:16px;border:1px solid var(--dm-border,#ddd6ed);border-left:4px solid var(--dm-primary,#6744d9);border-radius:14px;margin:0 0 20px;background:var(--dm-surface,#fff)}.dm-saved-agreement375 h3{margin:0 0 12px;font-size:1.05rem}.dm-saved-agreement375 h4{margin:16px 0 8px}.dm-saved-agreement375 p{margin:8px 0;overflow-wrap:anywhere}.dm-saved-agreement375 details{margin-top:12px}.dm-saved-agreement375 summary{cursor:pointer;font-weight:650}.dm-saved-agreement375 .btn{margin-top:10px}
.dm-overview-controls375{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;align-items:end}.dm-profile-overview375{margin:18px 0}.dm-teacher-site375{padding:16px;border:1px solid var(--dm-border,#ddd);border-radius:14px;margin:16px 0}.dm-teacher-site375 dl{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}.dm-teacher-site375 dt{font-size:.8rem;color:var(--dm-muted,#666)}.dm-teacher-site375 dd{margin:6px 0;font-weight:750}.dm-teacher-print-table375{overflow:auto;max-width:100%}.dm-teacher-print-table375 table{border-collapse:collapse;width:100%;min-width:650px;font-size:.85rem}.dm-teacher-print-table375 td,.dm-teacher-print-table375 th{padding:12px 8px;border-bottom:1px solid var(--dm-border,#ddd);text-align:left;vertical-align:top}.dm-teacher-print-table375 small{display:block;margin-top:5px}.dm-teacher-print-table375 .btn{margin:4px 0;white-space:normal}.dm-legacy-agreements375{margin:22px 0;padding:16px;border:1px solid var(--dm-border,#ddd);border-radius:12px}.dm-legacy-agreements375 .btn{margin:8px}.dm-legacy-agreements375 summary{font-weight:650;cursor:pointer}@media(max-width:600px){.dm-teacher-site375 dl{grid-template-columns:1fr 1fr}.dm-overview-controls375{grid-template-columns:1fr}.dm-teacher-site375{padding:12px}.dm-teacher-site375 h3{font-size:1.05rem}}
.dm-preserve-courses375{border:1px solid #dfd4ad;border-radius:12px;padding:14px;background:var(--dm-surface,#fff);margin:16px 0}.dm-preserve-course375{display:flex!important;align-items:flex-start;gap:12px;margin:12px 0;padding:12px;border:1px solid var(--dm-border,#ddd);border-radius:10px;cursor:pointer}.dm-preserve-course375 input[type=checkbox]{width:22px!important;height:22px!important;min-width:22px!important;flex:0 0 22px;margin:2px 0!important}.dm-preserve-course375 span{min-width:0}.dm-preserve-course375 small{display:block;margin-top:7px;line-height:1.45}
@media(max-width:700px){html body #modalWrap .modal:has(#dmGeneral374,#dmAgreement373,#dmHubOverview375,.dm-profile-overview375,#dmFinanceHost373){display:flex!important;flex-direction:column!important;max-height:calc(100dvh - 24px - env(safe-area-inset-top,0px) - env(safe-area-inset-bottom,0px))!important;min-height:0!important;overflow:hidden!important}html body #modalWrap .modal:has(#dmGeneral374,#dmAgreement373)>form{display:flex!important;flex-direction:column!important;flex:1 1 auto!important;min-height:0!important;overflow:hidden!important}html body #modalWrap .modal:has(#dmGeneral374,#dmAgreement373,#dmHubOverview375,.dm-profile-overview375,#dmFinanceHost373) .modal-head,html body #modalWrap .modal:has(#dmGeneral374,#dmAgreement373,#dmHubOverview375,.dm-profile-overview375,#dmFinanceHost373) .modal-foot{flex:0 0 auto!important;position:relative!important;inset:auto!important;margin:0!important}html body #modalWrap .modal:has(#dmGeneral374,#dmAgreement373,#dmHubOverview375,.dm-profile-overview375,#dmFinanceHost373) .modal-foot{max-height:42dvh!important;overflow:auto!important}html body #modalWrap .modal:has(#dmGeneral374,#dmAgreement373,#dmHubOverview375,.dm-profile-overview375,#dmFinanceHost373) .modal-body{flex:1 1 auto!important;min-height:0!important;max-height:none!important;overflow-y:auto!important;overflow-x:hidden!important;padding-bottom:18px!important}html body #modalWrap .dm-teacher-print-table375 table{min-width:0!important;display:block!important}html body #modalWrap .dm-teacher-print-table375 thead{display:none!important}html body #modalWrap .dm-teacher-print-table375 tbody{display:grid!important;gap:12px}html body #modalWrap .dm-teacher-print-table375 tr{display:block!important;border:1px solid var(--dm-border,#ddd);border-radius:12px;padding:10px}html body #modalWrap .dm-teacher-print-table375 td{display:block!important;padding:8px 0!important;overflow-wrap:anywhere;white-space:normal!important}html body #modalWrap .dm-teacher-print-table375 td:before{content:attr(data-label);display:block;font-size:.8rem;font-weight:650;color:var(--dm-muted,#666);margin-bottom:5px}html body #modalWrap .dm-teacher-print-table375 td .btn{width:100%!important;min-width:0!important}}
@media(max-width:700px){html body :is(#app,#modalWrap) :is(#dmFinanceHost373,#dmTeacherCourseBody374) .dm-finance-table373:has(.dm-finance-paytable373){max-height:none!important;overflow:visible!important}html body :is(#app,#modalWrap) :is(#dmFinanceHost373,#dmTeacherCourseBody374) table.dm-finance-paytable373{display:block!important;min-width:0!important;max-width:100%!important;width:100%!important;table-layout:auto!important}html body :is(#app,#modalWrap) :is(#dmFinanceHost373,#dmTeacherCourseBody374) .dm-finance-paytable373 thead{display:none!important}html body :is(#app,#modalWrap) :is(#dmFinanceHost373,#dmTeacherCourseBody374) .dm-finance-paytable373 tbody{display:grid!important;gap:14px;width:100%!important}html body :is(#app,#modalWrap) :is(#dmFinanceHost373,#dmTeacherCourseBody374) .dm-finance-paytable373 tr{display:block!important;border:1px solid var(--dm-border,#ddd);border-radius:12px;padding:12px;position:static!important}html body :is(#app,#modalWrap) :is(#dmFinanceHost373,#dmTeacherCourseBody374) .dm-finance-paytable373 td{display:block!important;position:static!important;float:none!important;transform:none!important;width:auto!important;height:auto!important;min-height:0!important;max-width:100%!important;padding:10px 0!important;white-space:normal!important;overflow-wrap:anywhere}html body :is(#app,#modalWrap) :is(#dmFinanceHost373,#dmTeacherCourseBody374) .dm-finance-paytable373 td[data-label]:before{content:attr(data-label)!important;display:block!important;position:static!important;inset:auto!important;float:none!important;width:auto!important;height:auto!important;margin:0 0 7px!important;padding:0!important;transform:none!important;font-size:.8rem!important;line-height:1.4!important;font-weight:650;color:var(--dm-muted,#666)}html body :is(#app,#modalWrap) :is(#dmFinanceHost373,#dmTeacherCourseBody374) .dm-finance-paytable373 td.dm-finance-actions375{display:grid!important;grid-template-columns:minmax(0,1fr)!important;gap:8px!important;clear:both!important}html body :is(#app,#modalWrap) :is(#dmFinanceHost373,#dmTeacherCourseBody374) .dm-finance-paytable373 td.dm-finance-actions375 .btn{display:flex!important;position:static!important;inset:auto!important;float:none!important;clear:both!important;transform:none!important;justify-content:center!important;align-items:center!important;min-width:0!important;width:100%!important;max-width:100%!important;min-height:44px!important;height:auto!important;margin:0!important;padding:11px!important;white-space:normal!important;line-height:1.35!important}}

@media(max-width:700px){html body #modalWrap:has(.modal :is(#dmGeneral374,#dmAgreement373,#dmHubOverview375,.dm-profile-overview375,#dmFinanceHost373)){box-sizing:border-box!important;padding-top:calc(12px + env(safe-area-inset-top,0px))!important;padding-bottom:calc(12px + env(safe-area-inset-bottom,0px))!important}}

/* V6.383: mobile report cells grow with agreement notes and action buttons. */
@media screen and (max-width:700px){
 html body #modalWrap .dm-teacher-print-table375{overflow:visible!important;min-width:0;}
 html body #modalWrap .dm-teacher-print-table375 :is(table,tbody,tr,td){box-sizing:border-box;min-width:0!important;max-width:100%!important;}
 html body #modalWrap .dm-teacher-print-table375 tr{height:auto!important;overflow:visible!important;}
 html body #modalWrap .dm-teacher-print-table375 td{height:auto!important;min-height:0!important;position:static!important;float:none!important;transform:none!important;line-height:1.5!important;}
 html body #modalWrap .dm-teacher-print-table375 td::before{position:static!important;inset:auto!important;width:auto!important;height:auto!important;float:none!important;transform:none!important;line-height:1.4!important;}
 html body #modalWrap .dm-teacher-print-table375 td small{position:static!important;display:block!important;float:none!important;line-height:1.5!important;margin:6px 0 0!important;}
 html body #modalWrap .dm-teacher-print-table375 td[data-label="Azioni"]{display:grid!important;grid-template-columns:minmax(0,1fr);gap:8px;}
 html body #modalWrap .dm-teacher-print-table375 td .btn{position:static!important;box-sizing:border-box;height:auto!important;min-height:44px!important;max-width:100%!important;margin:0!important;white-space:normal!important;line-height:1.4!important;}
 html body #modalWrap .dm-teacher-site375 :is(h3,dt,dd){overflow-wrap:anywhere;min-width:0;}
 html body #modalWrap .dm-teacher-site375>[data-overview-ledger375]{max-width:100%;height:auto!important;white-space:normal!important;line-height:1.4;}
}
