/* FL Buddy 7 · Fix 25 · echte Split-Ansicht Fahrschüler + Schülerakte */
body.flb-students-data-pending #page-fahrschueler .student-metrics,
body.flb-students-data-pending #page-fahrschueler .students-panel{visibility:hidden!important}

@media (min-width:981px){
 #page-fahrschueler.active{width:100%!important;max-width:none!important;min-width:0!important}
 #page-fahrschueler.active.flb-record-open{
   display:grid!important;grid-template-columns:minmax(420px,36%) minmax(0,64%)!important;
   column-gap:12px!important;align-items:start!important;padding-right:0!important;
 }
 #page-fahrschueler>.flb-student-list-pane{grid-column:1;min-width:0!important;width:100%!important}
 #page-fahrschueler>.flb-student-record-host{grid-column:2;min-width:0!important;width:100%!important;align-self:start!important}
 #page-fahrschueler>.flb-student-record-host[hidden]{display:none!important}
 #page-fahrschueler:not(.flb-record-open)>.flb-student-list-pane{width:100%!important}

 #page-fahrschueler.flb-record-open .student-metrics{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:10px!important}
 #page-fahrschueler.flb-record-open .students-topbar{gap:8px!important;align-items:flex-start!important}
 #page-fahrschueler.flb-record-open .students-topbar .page-subtitle{display:none!important}
 #page-fahrschueler.flb-record-open .student-toolbar{grid-template-columns:1fr!important;gap:8px!important}
 #page-fahrschueler.flb-record-open .student-filters{display:flex!important;flex-wrap:wrap!important;overflow:visible!important}
 #page-fahrschueler.flb-record-open .student-list-head,
 #page-fahrschueler.flb-record-open .student-row{grid-template-columns:minmax(155px,1.35fr) minmax(95px,.65fr) 38px!important;gap:8px!important}
 #page-fahrschueler.flb-record-open .student-list-head>span:nth-child(3),#page-fahrschueler.flb-record-open .student-list-head>span:nth-child(4),
 #page-fahrschueler.flb-record-open .student-row>div:nth-child(3),#page-fahrschueler.flb-record-open .student-row>div:nth-child(4){display:none!important}

 /* Alle alten Overlay-Regeln werden hier bewusst neutralisiert. */
 body.flb7-workspace #page-fahrschueler>.flb-student-record-host>#fullStudentRecordModal.flb-inline-student-record,
 body.flb7-workspace #page-fahrschueler>.flb-student-record-host>#fullStudentRecordModal.flb-inline-student-record.show{
   position:static!important;inset:auto!important;display:block!important;width:100%!important;height:auto!important;min-width:0!important;
   max-width:none!important;min-height:0!important;max-height:none!important;margin:0!important;padding:0!important;background:transparent!important;
   backdrop-filter:none!important;z-index:auto!important;overflow:visible!important;opacity:1!important;visibility:visible!important;pointer-events:auto!important;
 }
 body.flb7-workspace #page-fahrschueler>.flb-student-record-host>#fullStudentRecordModal .student-record-modal{
   position:static!important;inset:auto!important;width:100%!important;max-width:none!important;height:auto!important;min-height:0!important;max-height:none!important;
   margin:0!important;padding:0!important;transform:none!important;zoom:1!important;overflow:visible!important;border-radius:16px!important;box-shadow:none!important;
 }
 #page-fahrschueler #fullStudentRecordModal .flb7-context-links{display:none!important}
 #page-fahrschueler #fullStudentRecordModal .drawer-head{position:static!important;padding:13px 15px 9px!important;min-height:0!important}
 #page-fahrschueler #fullStudentRecordModal .drawer-head h2{font-size:1.25rem!important;margin:2px 0 0!important}
 #page-fahrschueler #fullStudentRecordModal .record-hero{position:static!important;margin:0 14px 9px!important;padding:10px 12px!important;min-height:0!important;grid-template-columns:auto minmax(0,1fr) auto!important;gap:10px!important;box-shadow:none!important}
 #page-fahrschueler #fullStudentRecordModal .record-hero .large-student{width:42px!important;height:42px!important;font-size:.9rem!important}
 #page-fahrschueler #fullStudentRecordModal .record-hero strong{font-size:1rem!important}
 #page-fahrschueler #fullStudentRecordModal .record-tabs{position:static!important;top:auto!important;margin:0 14px 9px!important;padding:5px!important;display:flex!important;flex-wrap:wrap!important;gap:5px!important;overflow:visible!important;box-shadow:none!important}
 #page-fahrschueler #fullStudentRecordModal .record-tab{flex:0 0 auto!important;width:auto!important;min-width:0!important;padding:7px 9px!important;min-height:32px!important;font-size:.75rem!important;border-radius:8px!important;border:0!important}
 #page-fahrschueler #fullStudentRecordModal .flb-placeholder-tab{display:none!important}
 #page-fahrschueler #fullStudentRecordModal #studentRecordForm{padding:0 14px 12px!important;min-width:0!important}
 #page-fahrschueler #fullStudentRecordModal .flb7-record-summary{grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:7px!important;margin:0 0 9px!important}
 #page-fahrschueler #fullStudentRecordModal .flb7-record-summary article{padding:9px 10px!important;min-width:0!important}
 #page-fahrschueler #fullStudentRecordModal .flb7-record-actions{display:flex!important;flex-wrap:wrap!important;gap:6px!important;margin:0 0 9px!important}
 #page-fahrschueler #fullStudentRecordModal .record-panel{padding-top:6px!important;min-width:0!important}
 #page-fahrschueler #fullStudentRecordModal .training-cockpit-summary{display:grid!important;grid-template-columns:minmax(0,1.15fr) minmax(240px,.85fr)!important;gap:9px!important}
 #page-fahrschueler #fullStudentRecordModal .training-progress-hero,#page-fahrschueler #fullStudentRecordModal .training-readiness-card{padding:11px!important;min-height:0!important}
 #page-fahrschueler #fullStudentRecordModal .training-stage-grid{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:7px!important}
 #page-fahrschueler #fullStudentRecordModal .training-timeline-card{margin-top:9px!important;min-height:130px!important;padding:11px!important}
 #page-fahrschueler #fullStudentRecordModal .record-grid{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:9px!important}
 #page-fahrschueler #fullStudentRecordModal .record-card,#page-fahrschueler #fullStudentRecordModal .record-grid article{padding:11px!important;min-width:0!important}
 #page-fahrschueler #fullStudentRecordModal .record-actions{position:static!important;margin-top:9px!important;padding:9px 0 0!important}
 body.flb-student-record-open .overlay,body.flb-student-record-open #studentDrawer{display:none!important}
}
@media (min-width:981px) and (max-width:1280px){
 #page-fahrschueler.active.flb-record-open{grid-template-columns:minmax(370px,40%) minmax(0,60%)!important}
 #page-fahrschueler #fullStudentRecordModal .flb7-record-summary{grid-template-columns:repeat(2,minmax(0,1fr))!important}
 #page-fahrschueler #fullStudentRecordModal .training-stage-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}
}
