/* FahrtenPro · Tagesplanung-Kasten kompakter · 19.10.2026 v1.
   Nur das Filterpanel in der normalen Desktopansicht. Die Felder behalten
   ihre Schriftgröße, Reihenfolge, IDs und vorhandenen Ereignisbindungen. */
@media screen and (min-width: 1025px) {
  body:not(.fp-dispatch-window):not(.fp-dispatch-pure) .rp-panel:has(> .rp-dispatch-controls) {
    padding: 8px 12px;
  }

  body:not(.fp-dispatch-window):not(.fp-dispatch-pure) .rp-panel:has(> .rp-dispatch-controls) > .rp-panel-head {
    gap: 8px;
    margin-bottom: 8px;
  }

  body:not(.fp-dispatch-window):not(.fp-dispatch-pure) .rp-panel:has(> .rp-dispatch-controls) > .rp-panel-head > div:first-child {
    min-width: 0;
  }

  body:not(.fp-dispatch-window):not(.fp-dispatch-pure) .rp-panel:has(> .rp-dispatch-controls) .rp-dispatch-datebar {
    gap: 5px;
    flex-wrap: nowrap;
    flex-shrink: 0;
  }

  body:not(.fp-dispatch-window):not(.fp-dispatch-pure) .rp-panel:has(> .rp-dispatch-controls) .rp-dispatch-controls {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px 10px;
  }

  body:not(.fp-dispatch-window):not(.fp-dispatch-pure) .rp-panel:has(> .rp-dispatch-controls) .rp-dispatch-controls > .rp-field {
    flex-direction: row;
    align-items: center;
    gap: 6px;
    min-width: 0;
  }

  body:not(.fp-dispatch-window):not(.fp-dispatch-pure) .rp-panel:has(> .rp-dispatch-controls) .rp-field > label {
    flex: 0 0 auto;
    white-space: nowrap;
  }

  body:not(.fp-dispatch-window):not(.fp-dispatch-pure) .rp-panel:has(> .rp-dispatch-controls) .rp-field > :is(input, select) {
    flex: 1 1 0;
    width: 0;
    min-width: 0;
    height: 32px;
    padding: 5px 8px;
    line-height: 20px;
    border-radius: 9px;
  }

  body:not(.fp-dispatch-window):not(.fp-dispatch-pure) .rp-panel:has(> .rp-dispatch-controls) :is(.rp-dispatch-control-actions, .rp-dispatch-control-actions-right) {
    gap: 6px;
  }

  body:not(.fp-dispatch-window):not(.fp-dispatch-pure) .rp-panel:has(> .rp-dispatch-controls) .btn {
    min-height: 32px;
    padding: 6px 10px;
    line-height: 20px;
  }
}

@media screen and (min-width: 1600px) {
  body:not(.fp-dispatch-window):not(.fp-dispatch-pure) .rp-panel:has(> .rp-dispatch-controls) .rp-dispatch-controls {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }
}
