#flbOfficeAgendaLaunch{position:fixed;right:20px;bottom:18px;z-index:800;background:var(--flb-light-teal-soft, #0d7774);color:var(--flb-light-ink, white);border:1px solid var(--flb-light-outline, #3bb5a9);border-radius:12px;padding:12px 18px;font-weight:700;cursor:pointer}#flbOfficeAgendaLaunch[hidden],#flbOfficeAgenda[hidden]{display:none!important}#flbOfficeAgenda{position:fixed;inset:4% 5%;z-index:850;overflow:auto;background:var(--flb-light-surface, #10242d);color:var(--flb-light-ink, #eff9fa);border:1px solid var(--flb-light-line, #3a6871);border-radius:16px;padding:25px;box-shadow:0 20px 90px #000b;font:inherit}.oa-head,.oa-controls,.oa-summary,.oa-item,.oa-actions{display:flex;align-items:center;justify-content:space-between;gap:14px}.oa-head h2{margin:4px 0}.oa-head p,.oa-item small,.oa-warning{color:var(--flb-light-muted, #abc3c9)}.oa-summary{margin:20px 0;padding:14px;background:var(--flb-light-surface, #193640);border-radius:10px}.oa-form{padding:18px;background:var(--flb-light-surface, #193640);border-radius:12px;margin:16px 0}.oa-fields{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.oa-fields label,.oa-controls label{display:flex;flex-direction:column;gap:6px}.oa-fields input,.oa-fields select,.oa-controls select,.oa-actions select{background:var(--flb-light-surface, #0c2630);border:1px solid var(--flb-light-outline, #53727a);color:var(--flb-light-ink, #fff);padding:10px;border-radius:8px;min-width:0}.oa-form button,#oaClose,.oa-actions button{padding:9px 14px;border-radius:9px;border:1px solid var(--flb-light-outline, #58818a);background:var(--flb-light-raised, #28505c);color:var(--flb-light-ink, #fff);cursor:pointer}.oa-form button{margin-top:15px;background:var(--flb-light-teal-soft, #087e77)}.oa-item{align-items:flex-start;border-bottom:1px solid var(--flb-light-line, #35515b);padding:14px 0}.oa-item>div:first-child{display:flex;flex-direction:column;gap:5px}.oa-type{font-size:12px;color:var(--flb-light-accent-ink, #7ce2d5)}.oa-item.done{opacity:.55}.oa-warning{margin-top:22px;font-size:13px}@media(max-width:850px){#flbOfficeAgenda{inset:2%;padding:14px}.oa-fields{grid-template-columns:1fr}.oa-item,.oa-actions,.oa-summary{flex-wrap:wrap}}
/* Fix 92: Bürokalender als reguläre Workspace-Seite statt Floating-Overlay */
#page-office-agenda{padding:16px 18px 35px;min-height:70vh}
#page-office-agenda #flbOfficeAgenda{position:static;inset:auto;z-index:auto;overflow:visible;box-shadow:none;min-height:60vh;max-width:1250px;margin:0 auto}
#flbOfficeAgendaLaunch{display:none!important}
body.flb-demo-office-role #page-cockpit > :not(#flbOfficeDemoOverview){display:none!important}
#flbOfficeDemoOverview{max-width:1250px;margin:12px auto;padding:24px;border-radius:16px;background:var(--flb-light-surface, #10242d);border:1px solid var(--flb-light-line, #3a6871);color:var(--flb-light-ink, #eff9fa)}
#flbOfficeDemoOverview .oa-head button{padding:12px 16px;background:var(--flb-light-teal-soft, #087e77);border:1px solid var(--flb-light-outline, #3bb5a9);color:var(--flb-light-ink, white);border-radius:10px;cursor:pointer}
#flbOfficeDemoOverview .oa-list{margin-top:16px}

/* Fix 93: Schüler-Autocomplete im Büro-Aufgabenformular */
.oa-student-picker{display:block;position:relative;min-width:0}.oa-student-picker>input[type="text"],.oa-student-picker>input:not([type]){width:100%;box-sizing:border-box}.oa-student-suggestions{position:absolute;top:calc(100% + 4px);left:0;right:0;max-height:230px;overflow:auto;z-index:50;background:var(--flb-light-surface, #102c35);border:1px solid var(--flb-light-outline, #4c838a);border-radius:9px;box-shadow:0 14px 28px #0008}.oa-student-suggestions[hidden]{display:none}.oa-student-suggestions button{display:flex;align-items:center;justify-content:space-between;width:100%;padding:10px 12px;margin:0;background:transparent;border:0;border-bottom:1px solid var(--flb-light-line, #30505a);color:var(--flb-light-ink, #eff9fa);text-align:left;cursor:pointer}.oa-student-suggestions button:hover,.oa-student-suggestions button.active{background:var(--flb-light-raised, #17565b)}.oa-student-suggestions small{color:var(--flb-light-muted, #9ac6c9)}.oa-student-empty{padding:12px;color:var(--flb-light-muted, #a9c5c9)}

/* Fix 94: kompaktes, schwebendes Schüler-Dropdown (überschreibt globale Formular-Button-Stile) */
#flbOfficeAgenda .oa-student-picker{display:block;position:relative;min-width:0;width:100%}
#flbOfficeAgenda .oa-student-picker #oaStudentSearch{display:block;width:100%;min-width:0;box-sizing:border-box}
#flbOfficeAgenda .oa-student-picker .oa-student-suggestions{display:block;position:absolute;top:calc(100% + 5px);left:0;right:0;width:100%;box-sizing:border-box;max-height:238px;overflow-y:auto;overflow-x:hidden;z-index:1000;padding:4px;background:var(--flb-light-surface, #102c35);border:1px solid var(--flb-light-outline, #487781);border-radius:10px;box-shadow:0 14px 32px rgba(0,0,0,.5)}
#flbOfficeAgenda .oa-student-picker .oa-student-suggestions[hidden]{display:none!important}
#flbOfficeAgenda .oa-form .oa-student-picker .oa-student-suggestions button{display:flex!important;flex-direction:row;align-items:center;justify-content:space-between;gap:10px;width:100%;max-width:100%;box-sizing:border-box;min-height:42px;margin:0!important;padding:9px 10px!important;border:0!important;border-radius:6px!important;background:transparent!important;color:var(--flb-light-ink, #eff9fa)!important;font:inherit;font-size:13px;text-align:left;cursor:pointer;box-shadow:none!important}
#flbOfficeAgenda .oa-form .oa-student-picker .oa-student-suggestions button+button{border-top:1px solid var(--flb-light-line, #284953)!important}
#flbOfficeAgenda .oa-form .oa-student-picker .oa-student-suggestions button:hover,#flbOfficeAgenda .oa-form .oa-student-picker .oa-student-suggestions button.active{background:var(--flb-light-raised, #1b4d55)!important}
#flbOfficeAgenda .oa-student-suggestions button span{display:block;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
#flbOfficeAgenda .oa-student-suggestions .oa-student-class{display:inline-block;flex-shrink:0;padding:3px 7px;border-radius:6px;background:var(--flb-light-raised, #244750);color:var(--flb-light-muted, #b9e2e1);font-size:11px;font-weight:700;white-space:nowrap}
#flbOfficeAgenda .oa-student-empty{padding:12px;font-size:13px}

/* Fix 97: echte Tag/Woche/Monat-Ansicht für Live-Bürokalender */
#flbOfficeAgenda .oa-calendar{margin:18px 0;padding:15px;background:var(--flb-light-surface, #152f39);border:1px solid var(--flb-light-line, #365c65);border-radius:12px}
#flbOfficeAgenda .oa-cal-toolbar{display:flex;justify-content:space-between;align-items:center;gap:12px;flex-wrap:wrap;margin-bottom:12px}
#flbOfficeAgenda .oa-cal-toolbar>div{display:flex;gap:5px}
#flbOfficeAgenda .oa-cal-toolbar button{border:1px solid var(--flb-light-outline, #50747c);background:var(--flb-light-raised, #1b434d);color:var(--flb-light-ink, #e8f8fa);padding:7px 12px;border-radius:7px;cursor:pointer}
#flbOfficeAgenda .oa-cal-toolbar button.selected{background:var(--flb-light-teal-soft, #087e77);border-color:var(--flb-light-outline, #37b4a9)}
#flbOfficeAgenda .oa-cal-grid{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:5px}
#flbOfficeAgenda .oa-cal-grid:not(.month):has(> :only-child){grid-template-columns:1fr}
#flbOfficeAgenda .oa-cal-day{background:var(--flb-light-surface, #0e2731);border:1px solid var(--flb-light-line, #36535e);border-radius:8px;padding:8px;min-height:120px;min-width:0}
#flbOfficeAgenda .oa-cal-date{font-size:12px;color:var(--flb-light-muted, #a5c9cd);border-bottom:1px solid var(--flb-light-line, #36535e);padding-bottom:6px;margin-bottom:7px}
#flbOfficeAgenda .oa-cal-event{background:var(--flb-light-raised, #20555d);border-left:3px solid var(--flb-light-outline, #5de0cd);padding:6px;margin-bottom:5px;border-radius:5px;font-size:12px;overflow-wrap:anywhere}
#flbOfficeAgenda .oa-cal-event strong{display:block}#flbOfficeAgenda .oa-cal-event small{display:block;color:var(--flb-light-muted, #c0e0e2)}#flbOfficeAgenda .oa-cal-event.done{opacity:.5}
#flbOfficeAgenda .oa-cal-empty{color:var(--flb-light-accent-ink, #54737a)}
@media(max-width:850px){#flbOfficeAgenda .oa-cal-grid{grid-template-columns:repeat(2,minmax(0,1fr))}#flbOfficeAgenda .oa-cal-grid.month{grid-template-columns:repeat(3,minmax(0,1fr))}}

/* Fix 98: live instructor occupancy in office calendar */
#flbOfficeAgenda .oa-cal-event.oa-lesson{background:var(--flb-light-raised, #1d4268);border-left-color:var(--flb-light-outline, #67b3ff);color:var(--flb-light-ink, #edf7ff)}
#flbOfficeAgenda .oa-live-warning{padding:10px;border:1px solid var(--flb-light-outline, #db9e4d);border-radius:8px;color:var(--flb-light-warning, #ffe2b7)}
#flbOfficeAgenda .oa-live-note{font-size:12px;color:var(--flb-light-muted, #b4d5da)}

/* Fix 99: Team columns with hour grid */
#flbOfficeAgenda .oa-team-scroll{overflow-x:auto}
#flbOfficeAgenda .oa-team-layout{display:grid;grid-template-columns:66px repeat(var(--oa-cols),minmax(190px,1fr));min-width:max-content;gap:4px}
#flbOfficeAgenda .oa-team-col{min-width:190px}
#flbOfficeAgenda .oa-team-label{height:38px;padding:9px 5px;box-sizing:border-box;background:var(--flb-light-surface, #153943);border-radius:6px;font-weight:700;text-align:center}
#flbOfficeAgenda .oa-team-hour{height:54px;box-sizing:border-box;font-size:11px;color:var(--flb-light-muted, #a9c6cb);border-top:1px solid var(--flb-light-line, #42616b);padding:3px}
#flbOfficeAgenda .oa-team-track{height:var(--oa-height);position:relative;background:repeating-linear-gradient(to bottom,var(--flb-light-surface, #112d36) 0px,var(--flb-light-surface, #112d36) 53px,var(--flb-light-raised, #35515b) 54px);border:1px solid var(--flb-light-line, #3b5a63)}
#flbOfficeAgenda .oa-team-event{position:absolute;left:3px;right:3px;box-sizing:border-box;padding:4px 6px;overflow:hidden;border-left:3px solid var(--flb-light-outline, #5de0cd);border-radius:5px;background:var(--flb-light-raised, #20555d);font-size:12px;z-index:1}
#flbOfficeAgenda .oa-team-event.oa-lesson{background:var(--flb-light-raised, #1d4268);border-left-color:var(--flb-light-outline, #67b3ff)}
#flbOfficeAgenda .oa-team-event small{display:block;font-size:10px}
#flbOfficeAgenda .oa-team-event strong{display:block;overflow-wrap:anywhere}

/* Fix 100: in-app confirmation and visual conflict indicator */
.oa-confirm-overlay{position:fixed;inset:0;z-index:2147482000;background:rgba(0,0,0,.66);display:flex;align-items:center;justify-content:center;padding:18px}
.oa-confirm-dialog{width:min(520px,100%);max-height:85vh;overflow:auto;background:var(--flb-light-surface, #17323c);color:var(--flb-light-ink, #f3f7f8);border:1px solid var(--flb-light-line, #63838a);border-radius:13px;padding:22px;box-shadow:0 18px 60px #0009}
.oa-confirm-dialog h3{margin:0 0 12px;font-size:19px}
.oa-confirm-details{background:var(--flb-light-surface, #10252e);padding:10px 14px;border-radius:8px;max-height:40vh;overflow:auto}
.oa-confirm-details p{margin:7px 0}
.oa-confirm-buttons{display:flex;justify-content:flex-end;gap:12px;margin-top:18px}
.oa-confirm-buttons button{padding:10px 14px;border-radius:8px;cursor:pointer}
.oa-confirm-buttons [data-yes]{background:var(--flb-light-amber-strong, #e7aa42);color:#17232a;font-weight:700}
#flbOfficeAgenda .oa-conflict{outline:2px solid var(--flb-light-outline, #e7aa42);outline-offset:-2px}
#flbOfficeAgenda .oa-conflict:before{content:"⚠";margin-right:4px;color:var(--flb-light-warning, #e7aa42)}

/* Fix 101: compact creation workflow; existing conflict dialog remains unchanged */
#flbOfficeAgenda .oa-form-launch{display:flex;justify-content:flex-end;margin:14px 0}
#flbOfficeAgenda .oa-form-launch button{background:var(--flb-light-teal-soft, #078b85);color:var(--flb-light-ink, white);border:1px solid var(--flb-light-outline, #21b6ae);border-radius:8px;padding:11px 18px;font-weight:700;cursor:pointer}
#flbOfficeAgenda .oa-form-overlay[hidden]{display:none!important}
#flbOfficeAgenda .oa-form-overlay{position:fixed;inset:0;z-index:2147481500;background:rgba(0,0,0,.68);display:flex;justify-content:center;align-items:center;padding:20px}
#flbOfficeAgenda .oa-form-panel{position:relative;width:min(850px,100%);max-height:90vh;overflow-y:auto;border:1px solid var(--flb-light-outline, #5b8992);background:var(--flb-light-surface, #14343e);border-radius:13px;padding:14px;box-shadow:0 15px 50px #0008}
#flbOfficeAgenda .oa-form-panel .oa-form{margin:0;border:0;box-shadow:none}
#flbOfficeAgenda .oa-form-close{position:absolute;top:10px;right:12px;background:var(--flb-light-raised, #234a55);color:var(--flb-light-ink, white);border:1px solid var(--flb-light-outline, #537780);border-radius:7px;font-size:22px;width:34px;height:34px;cursor:pointer;z-index:1}
#flbOfficeAgenda .oa-form-footer{display:flex;gap:10px;justify-content:flex-end;margin-top:14px}
#flbOfficeAgenda .oa-form-footer button{cursor:pointer}
#flbOfficeAgenda .oa-team-track{cursor:crosshair}
#flbOfficeAgenda .oa-team-event{cursor:default}
#flbOfficeAgenda .oa-item.oa-conflict-list{border-left:3px solid var(--flb-light-outline, #d9a347)!important;outline:none!important}
#flbOfficeAgenda .oa-item.oa-conflict-list:before{content:none!important}
#flbOfficeAgenda .oa-conflict-icon{color:var(--flb-light-warning, #e5af4c);font-size:13px}

/* Fix 102: parallel lanes and readable compact appointments */
#flbOfficeAgenda .oa-team-event{display:block;text-align:left;min-width:0;white-space:normal;font-family:inherit;color:var(--flb-light-ink, #eff9fa);border-top:0;border-right:0;border-bottom:0;cursor:pointer;line-height:1.25;z-index:2}
#flbOfficeAgenda .oa-team-event:hover,#flbOfficeAgenda .oa-team-event:focus-visible{filter:brightness(1.17);z-index:5;outline:2px solid var(--flb-light-outline, #83c9d1);outline-offset:-2px}
#flbOfficeAgenda .oa-team-event.oa-conflict{outline:2px solid var(--flb-light-outline, #e7aa42);outline-offset:-2px}
#flbOfficeAgenda .oa-team-event.oa-team-short{padding:2px 5px;white-space:nowrap;text-overflow:ellipsis}
#flbOfficeAgenda .oa-team-event.oa-team-short small{display:inline;font-size:10px}
#flbOfficeAgenda .oa-team-event.oa-team-short strong{display:none}
#flbOfficeAgenda .oa-team-event.oa-team-short:before{display:none}
.oa-detail-list{display:grid;grid-template-columns:minmax(90px,130px) 1fr;gap:10px 14px;margin:14px 0;overflow-wrap:anywhere}
.oa-detail-list dt{color:var(--flb-light-muted, #a6cbd1)}.oa-detail-list dd{margin:0;font-weight:600}

#flbOfficeLiveOverview {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr);
  align-items: center;
  gap: 12px 20px;
  margin: 0 0 16px;
  padding: 14px 16px;
}

#flbOfficeLiveOverview .oa-live-overview-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 14px;
}

#flbOfficeLiveOverview h2 {
  margin: 0;
  font-size: 1rem;
}

#flbOfficeLiveOverview #oaLiveOpen {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  width: auto;
  min-width: 0;
  min-height: 36px;
  padding: 0 10px;
  background: var(--soft);
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 9px;
}

#flbOfficeLiveOverview #oaLiveOpen:hover,
#flbOfficeLiveOverview #oaLiveOpen:focus-visible {
  border-color: var(--flb7-accent, var(--flb-light-outline, #16c3c7));
}

#flbOfficeLiveOverview .oa-live-overview-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin: 0;
}

#flbOfficeLiveOverview .oa-live-overview-metrics > div {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 3px 8px;
  min-width: 0;
  padding: 6px 10px;
  background: var(--soft);
  border-radius: 8px;
}

#flbOfficeLiveOverview dt { color: var(--muted); font-size: .75rem; }
#flbOfficeLiveOverview dd { order: -1; margin: 0; font-size: 1rem; font-weight: 750; }

@media (max-width: 760px) {
  #flbOfficeLiveOverview { grid-template-columns: minmax(0, 1fr); }
  #flbOfficeLiveOverview #oaLiveOpen { min-height: 44px; }
}
