.fleet-calendar { margin: 1.2rem 0; padding: 1.1rem; border: 1px solid var(--border-soft); border-radius: var(--radius-lg); background: var(--surface); min-width: 0; box-shadow: var(--shadow-card); }
.fc-heading { display: flex; flex-wrap: wrap; gap: .8rem; align-items: center; justify-content: space-between; margin-bottom: .8rem; }
.fc-heading h2, .fc-heading h3, .fc-heading p { margin: .2rem 0; }
.fc-heading h2 { font-size: calc(1.15rem * var(--fleet-font-scale, 1)); overflow-wrap: anywhere; }
.fc-toolbar { display: flex; align-items: end; flex-wrap: wrap; gap: .7rem; padding: .7rem 0; }
.fc-toolbar label { display: grid; gap: .3rem; font-size: calc(.8rem * var(--fleet-font-scale, 1)); min-width: 0; }
.fc-toolbar input, .fc-toolbar select { width: 100%; min-width: 0; }
.fc-toolbar .fleet-checkbox { display: flex; align-self: center; }
.fc-paging { display: flex; gap: .3rem; }
.fc-legend { display: flex; flex-wrap: wrap; gap: .45rem; margin: .8rem 0; }
.fc-legend > span { font-size: calc(.72rem * var(--fleet-font-scale, 1)); padding: .25rem .55rem; border-radius: 6px; border: 1px solid var(--border); }
.fc-note { max-width: 85ch; font-size: calc(.8rem * var(--fleet-font-scale, 1)); line-height: 1.5; }
.fc-empty { padding: 1.5rem .4rem; color: var(--muted); }
.fc-scroll { overflow: auto; max-width: 100%; border: 1px solid var(--border); border-radius: 10px; overscroll-behavior-x: contain; }
.fc-scroll:focus-visible, .fleet-calendar button:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; z-index: 6; }
.fc-matrix-heading, .fc-matrix-row { display: grid; grid-template-columns: 180px minmax(0,1fr); }
.fc-matrix-row { border-top: 1px solid var(--border); }
.fc-vehicle-label { position: sticky; left: 0; z-index: 4; display: flex; flex-direction: column; justify-content: center; gap: .2rem; padding: .7rem; text-align: left; border: 0; border-right: 1px solid var(--border); background: var(--surface); color: var(--text); font: inherit; }
button.fc-vehicle-label { cursor: pointer; }
.fc-vehicle-label small { color: var(--muted); font-size: calc(.68rem * var(--fleet-font-scale, 1)); overflow-wrap: anywhere; }
.fc-day-headings { display: grid; grid-template-columns: repeat(7,minmax(0,1fr)); background: var(--surface); }
.fc-day-headings > span { padding: .7rem .2rem; text-align: center; font-size: calc(.7rem * var(--fleet-font-scale, 1)); border-right: 1px solid var(--border); }
.fc-track { position: relative; min-width: 0; }
.fc-day-targets { position: absolute; inset: 0; display: grid; grid-template-columns: repeat(7,minmax(0,1fr)); }
.fc-day-targets button { border: 0; border-right: 1px solid var(--border); background: transparent; color: var(--muted); text-align: right; padding: 0 .4rem .3rem; display: flex; align-items: end; justify-content: end; cursor: pointer; }
.fc-day-targets button:hover:not(:disabled), .fc-hour-slot:hover:not(:disabled) { background: color-mix(in srgb, var(--accent) 14%, transparent); }
.fc-day-targets button:disabled { cursor: default; }
.fc-day-targets button:disabled > span { display: none; }
.fc-today { background: color-mix(in srgb, var(--accent) 9%, var(--surface)) !important; }
.fc-outside { opacity: .55; }
.fc-event { --fc-color: var(--accent); background: color-mix(in srgb, var(--fc-color) 20%, var(--surface)); color: var(--text); border: 1px solid color-mix(in srgb, var(--fc-color) 60%, var(--border)); border-left: 3px solid var(--fc-color); border-radius: 5px; cursor: pointer; text-align: left; padding: .25rem .4rem; font: inherit; font-size: calc(.69rem * var(--fleet-font-scale, 1)); }
.fc-track > .fc-event { position: absolute; z-index: 2; height: 29px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; min-width: 4px; }
.fc-kind-booking { --fc-color: var(--accent); }
.fc-kind-workshop { --fc-color: #e5a348; }
.fc-kind-blocked { --fc-color: #b38bfa; }
.fc-state-active { --fc-color: #41bba0; }
.fc-state-completed { --fc-color: #8492a6; }
.fc-state-cancelled { --fc-color: #8492a6; border-style: dashed !important; opacity: .7; }
.fc-legend > span { background: color-mix(in srgb, var(--fc-color) 15%, var(--surface)); border-left: 3px solid var(--fc-color); }
.fc-overdue { --fc-color: #ed7474; }
.fc-week { display: grid; grid-template-columns: repeat(7,minmax(190px,1fr)); min-width: 1330px; }
.fc-week-day { min-width: 0; border-right: 1px solid var(--border); }
.fc-week-day > h4 { position: sticky; top: 0; z-index: 4; background: var(--surface); padding: .7rem .2rem; margin: 0; text-align: center; font-size: calc(.75rem * var(--fleet-font-scale, 1)); border-bottom: 1px solid var(--border); }
.fc-hour-track { position: relative; }
.fc-hour-slot { position: absolute; left: 0; width: 100%; height: 44px; border: 0; border-bottom: 1px solid var(--border); background: transparent; text-align: left; color: var(--muted); font: inherit; font-size: calc(.6rem * var(--fleet-font-scale, 1)); padding: .2rem; cursor: pointer; }
.fc-hour-slot > span { display: block; width: 44px; overflow-wrap: anywhere; }
.fc-hour-slot > small { position: absolute; right: .5rem; top: .5rem; font-size: calc(1rem * var(--fleet-font-scale, 1)); }
.fc-hour-slot:disabled { cursor: default; }
.fc-hour-event { position: absolute; z-index: 2; display: flex; flex-direction: column; gap: .15rem; overflow: hidden; min-width: 0; overflow-wrap: anywhere; }
.fc-hour-event small { font-size: calc(.6rem * var(--fleet-font-scale, 1)); }
.fc-month-viewport { max-width: 100%; min-width: 0; border: 1px solid var(--border); border-radius: 10px; }
.fc-month { width: 100%; min-width: 0; }
.fc-month .fc-track { overflow: hidden; }
.fc-month .fc-day-headings > span { min-width: 0; overflow-wrap: anywhere; }
.fc-month .fc-matrix-heading, .fc-month .fc-matrix-row { grid-template-columns: minmax(105px,140px) minmax(0,1fr); }
.fc-month .fc-vehicle-label { position: static; min-width: 0; overflow-wrap: anywhere; }
.fc-month .fc-vehicle-label strong { font-size: calc(.8rem * var(--fleet-font-scale, 1)); }
.fc-month-week-title { margin: 0; padding: .65rem .7rem; font-size: calc(.8rem * var(--fleet-font-scale, 1)); background: var(--surface2); border-bottom: 1px solid var(--border); }
.fc-month-week + .fc-month-week { border-top: 1px solid var(--border); }
.fc-agenda { display: none; }
.fc-detail { margin-top: 1rem; padding: 1rem; border: 1px solid var(--border); border-radius: 10px; background: var(--surface2); overflow-wrap: anywhere; }
.fc-transfer { padding: .7rem 0; border-top: 1px solid var(--border); }
.fc-file-tabs { display: flex; flex-wrap: wrap; gap: .5rem; margin: .9rem 0; }
.fc-file-tabs [aria-pressed="true"] { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 15%, var(--surface)); }
@media(max-width:700px) {
  .fleet-calendar { padding: .7rem; }
  .fc-toolbar > label { flex: 1 1 115px; }
  .fc-toolbar .fleet-checkbox { flex-basis: 100%; }
  .fc-toolbar > .fc-paging { flex: 1 1 100%; }
  .fc-desktop { display: none; }
  .fc-agenda { display: block; }
  .fc-agenda-day { padding: .8rem .5rem; border-top: 1px solid var(--border); }
  .fc-agenda-day h4 { margin: 0 0 .6rem; }
  .fc-agenda-event { position: static; display: flex; width: 100%; flex-direction: column; gap: .4rem; margin-bottom: .5rem; padding: .7rem; overflow-wrap: anywhere; }
  .fc-mobile-vehicles { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: .6rem; }
  .fc-detail { padding: .7rem; }
}
