.layout-toolbar{display:flex;justify-content:flex-end;margin-bottom:12px;gap:8px}.custom-dashboard-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px}.dashboard-block{min-width:0}.dashboard-block.full{grid-column:1/-1}.dashboard-block>.panel{margin-top:0!important;height:100%;overflow:hidden}.dashboard-block .stats{margin-bottom:0}.dashboard-block .module-links{margin:0}.dashboard-block .table-container{max-width:100%;position:relative}.layout-dialog{width:min(780px,calc(100vw - 24px))}.layout-dialog .dialog-body{display:grid;gap:16px}.layout-widget-list{display:grid;gap:12px}.layout-widget-editor{padding:14px;border:1px solid var(--border,#e3e5e8);border-radius:12px;min-width:0}.layout-widget-heading{display:flex;align-items:center;justify-content:space-between;gap:8px;flex-wrap:wrap;margin-bottom:12px}.layout-widget-heading>div{display:flex;gap:6px}.layout-widget-heading .btn{padding:6px 10px}.layout-widget-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.layout-dialog .field{margin:0;min-width:0}.layout-dialog input,.layout-dialog select{max-width:100%}.layout-add{display:flex;gap:12px;align-items:flex-end}.layout-add>.field{flex:1}.layout-columns{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin-top:10px}.layout-column{display:flex;align-items:center;justify-content:space-between;gap:6px;min-width:0}.layout-column label{display:flex;gap:8px;align-items:center;overflow-wrap:anywhere}.layout-column input[type=checkbox]{width:18px;height:18px;flex-shrink:0;accent-color:var(--red,#bd2330)}.layout-column .btn{padding:4px 9px}.layout-dialog summary{cursor:pointer;padding:8px 0}.layout-dialog .dialog-actions{flex-wrap:wrap}.custom-dashboard-grid .cell-truncate{max-width:240px}.layout-dialog .form-error:empty{display:none}@media(max-width:760px){.custom-dashboard-grid{grid-template-columns:minmax(0,1fr)}.dashboard-block.half{grid-column:1/-1}.layout-widget-fields,.layout-columns{grid-template-columns:minmax(0,1fr)}.layout-dialog .dialog-actions .btn{flex:1;white-space:normal}.layout-widget-heading strong{overflow-wrap:anywhere}}

@media(max-width:760px){.table-container .parent-table.custom-columns{min-width:640px}.parent-table.custom-columns th:nth-child(3),.parent-table.custom-columns td:nth-child(3){display:table-cell}}

dialog.class-management-dialog{width:min(1180px,96vw);max-width:96vw}
.class-management-dialog .dialog-body{display:grid;grid-template-columns:minmax(0,1fr);gap:20px;min-width:0}
.class-management-dialog select,.class-management-dialog input{min-width:140px;max-width:260px;padding:9px;border:1px solid var(--line,#ddd);border-radius:8px;background:var(--surface,#fff);color:inherit}
.class-management-dialog .table-container{max-width:100%;overflow:auto}
.class-management-dialog h3{margin:0}

.class-management-dialog .dialog-body>*,
.class-management-dialog .dialog-head>div,
.class-management-dialog form{min-width:0;max-width:100%}
.class-management-dialog .table-container{width:100%;min-width:0;overscroll-behavior-x:contain}
.class-management-dialog .table-actions{display:flex;flex-wrap:wrap;min-width:0}
.class-management-dialog .table-actions .btn,
.class-management-dialog form>button{white-space:normal;max-width:100%}
.class-management-dialog .dialog-head h2,
.class-management-dialog .dialog-head p,
.class-management-dialog .dialog-body>p{overflow-wrap:anywhere}
.class-management-dialog #class-session{min-width:0;width:100%;max-width:100%}
@media(max-width:760px){.class-management-dialog .table-actions .btn{flex:1 1 140px}.class-management-dialog .dialog-body{padding:16px}.class-management-dialog .dialog-head{padding:16px}.class-management-dialog .dialog-head .icon-btn{flex-shrink:0}}
