/* FL Buddy 7 · konsolidierter Seiten-Audit */
.flb7-workspace .flb7-nav-children{display:none}.flb7-workspace .flb7-nav-group.open .flb7-nav-children{display:grid}
/* Kalender: dunkler, lesbar, echte belegte Blöcke */
#page-kalender{--cal-head:#10343b!important}#page-kalender .time-head,#page-kalender .day-head{background:#10343b!important;color:#eefafa!important;border-color:#2c555d!important}#page-kalender .day-head span,#page-kalender .day-head small,#page-kalender .time-col span{color:#9fc1c5!important}#page-kalender .time-col{background:#0d3037!important;border-color:#2a5158!important}#page-kalender .day-col{background-color:#0c3037!important;border-color:#294f57!important;background-image:repeating-linear-gradient(to bottom,transparent 0,transparent 59px,#244951 60px)!important}#page-kalender .day-col.weekend{background-color:#12343a!important}.cal-event.flb-booked-event{border-width:2px!important;box-shadow:0 0 0 1px rgba(255,255,255,.10),0 7px 18px rgba(0,0,0,.28)!important}.cal-event.drive{background:#174f48!important;color:#e8fffb!important;border-color:#45cbb8!important}.cal-event.auto{background:#403d61!important;color:#f0efff!important;border-color:#a8a0ef!important}.cal-event.exam{background:#60491f!important;color:#fff3d2!important;border-color:#e6b95e!important}.cal-event.theory{background:#244d64!important;color:#e7f6ff!important;border-color:#69afd5!important}.cal-event.blocked,.cal-event.pause{background:#5a3439!important;color:#ffecef!important;border-color:#d7828c!important}
#page-kalender .week-calendar{max-height:calc(100vh - 285px)!important;min-height:560px;overflow-y:auto!important;overflow-x:hidden!important;scrollbar-width:thin!important}#page-kalender .calendar-grid{grid-template-rows:90px 1440px!important;overflow:visible!important}#page-kalender .time-col{grid-template-rows:repeat(24,60px)!important;height:1440px!important}#page-kalender .day-col{height:1440px!important}
/* Ressourcen-Kalender */
.flb-resource-panel{padding:0!important}.flb-resource-title{display:flex;justify-content:space-between;align-items:flex-end;gap:18px;padding:18px 20px;border:1px solid #24505a;border-radius:18px 18px 0 0;background:#10363e}.flb-resource-title h2{margin:4px 0;font-size:24px}.flb-resource-title p{margin:0;color:#9cb9bd}.flb-resource-nav{display:flex;gap:7px}.flb-resource-nav button{border:1px solid #2c5961;background:#123c44;color:#eefafa;border-radius:10px;padding:9px 12px}.flb-resource-scroll{height:calc(100vh - 250px);min-height:600px;overflow:auto;border:1px solid #24505a;border-top:0;border-radius:0 0 18px 18px;background:#0a2b32}.flb-resource-grid{position:relative;display:grid;grid-template-columns:72px repeat(var(--rc),minmax(210px,1fr));grid-template-rows:58px repeat(24,64px);min-width:max(100%,calc(72px + var(--rc)*210px))}.flb-r-corner,.flb-r-head{position:sticky;top:0;z-index:8;background:#103840;border-bottom:1px solid #2d5961;border-right:1px solid #2d5961}.flb-r-head{padding:10px 12px}.flb-r-head b,.flb-r-head small{display:block}.flb-r-head small{color:#91b4b8;margin-top:3px}.flb-r-time{position:sticky;left:0;z-index:5;background:#0f343b;color:#91b4b8;text-align:right;padding:6px 9px;border-right:1px solid #2b555d;border-bottom:1px solid #244951;font-size:11px}.flb-r-hour{border-right:1px solid #244951;border-bottom:1px solid #244951;background:#0b3037}.flb-r-event{position:absolute;grid-column:var(--col);top:calc(58px + var(--top)*1.0666667px + 3px);height:max(34px,calc(var(--mins)*1.0666667px - 6px));left:5px;right:5px;z-index:4;border:2px solid;border-radius:10px;padding:6px 8px;text-align:left;overflow:hidden}.flb-r-event b,.flb-r-event strong,.flb-r-event small{display:block}.flb-r-event.drive{background:#174f48;color:#effffb;border-color:#45cbb8}.flb-r-event.auto{background:#403d61;color:#f4f2ff;border-color:#a8a0ef}.flb-r-event.blocked{background:#5a3439;color:#ffecef;border-color:#d7828c}.flb-r-now{position:absolute;left:72px;right:0;top:calc(58px + var(--now)*1.0666667px);height:2px;background:#ff656d;z-index:6;pointer-events:none}
/* Schülerkonto kompakt */
.flb-action-cell{white-space:nowrap!important;display:flex!important;gap:6px!important;align-items:center!important}.flb-icon-action{width:38px!important;height:36px!important;min-width:38px!important;padding:0!important;border:1px solid #2b5961!important;border-radius:9px!important;background:#123a42!important;color:#effafa!important;display:inline-grid!important;place-items:center!important;font-size:14px!important}.flb-neg,.flb-neg b{color:#ff7d88!important}.flb-pos,.flb-pos b{color:#54d6a2!important}.flb-zero,.flb-zero b{color:#a8bdc1!important}
/* Einladung reparieren */
#studentModal.flb-invite-fixed .invite-student-modal{width:min(620px,calc(100vw - 32px))!important;max-height:90vh!important;overflow:auto!important;padding:24px!important}#studentModal.flb-invite-fixed .invite-form-grid{display:grid!important;grid-template-columns:1fr!important;gap:16px!important}#studentModal.flb-invite-fixed label.wide{display:grid!important;grid-column:1/-1!important;gap:7px!important;width:100%!important}#studentModal.flb-invite-fixed textarea,#studentModal.flb-invite-fixed select{display:block!important;width:100%!important;min-height:48px!important;box-sizing:border-box!important}#studentModal.flb-invite-fixed textarea{min-height:100px!important;resize:vertical!important}.modal-backdrop{z-index:300!important}
/* Mitarbeitervergütung */
.flb-comp-grid{display:grid;grid-template-columns:1fr 1fr;gap:18px;margin:20px 0}.flb-comp-grid>section{border:1px solid #28535b;border-radius:15px;padding:16px;background:#0d3037}.flb-comp-card{padding:12px;border-bottom:1px solid #244b52}.flb-comp-card:last-child{border-bottom:0}.flb-comp-card b,.flb-comp-card small{display:block}.flb-comp-card small{color:#9bb7bb;margin-top:4px}.flb-error{color:#ff8791}
/* Schülerakte als Arbeitsbereich statt schwebendem Overlay */
body.flb7-workspace #fullStudentRecordModal.show{position:absolute!important;inset:92px 18px 18px 228px!important;background:#082830!important;backdrop-filter:none!important;display:block!important;overflow:auto!important;z-index:40!important;padding:0!important}body.flb7-workspace #fullStudentRecordModal.show .student-record-modal.flb-record-workspace{width:100%!important;max-width:none!important;min-height:100%!important;max-height:none!important;margin:0!important;border-radius:18px!important;box-shadow:none!important;overflow:visible!important}.flb-record-workspace .record-tabs{display:flex!important;flex-wrap:wrap!important;overflow:visible!important;gap:6px!important}.flb-record-workspace .record-tab{flex:0 0 auto!important;min-width:auto!important}.flb-placeholder-tab{opacity:.85}
/* keine globalen KPI-Karten in Facharbeitsbereichen */
body.flb7-workspace #page-buero .office-kpis,body.flb7-workspace #page-buero .office-tabs{display:none!important}
@media(max-width:900px){.flb-comp-grid{grid-template-columns:1fr}body.flb7-workspace #fullStudentRecordModal.show{inset:84px 8px 8px!important}.flb-resource-grid{grid-template-columns:62px repeat(var(--rc),minmax(180px,1fr))}.flb-r-now{left:62px}}
