/* Compact Scheduler / Gantt header command bar */
.scheduler-cmdbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px 8px;
    width: 100%;
    min-height: 32px;
}

.scheduler-cmdbar-groups {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px 8px;
    flex: 1;
    min-width: 0;
}

.scheduler-cmdbar-ai {
    margin-left: auto;
    flex-shrink: 0;
}

/* Ask AI dock: shrinks the schedule grid instead of overlaying it */
.ai-split {
    display: flex;
    align-items: stretch;
    gap: 0;
    width: 100%;
    min-width: 0;
    min-height: calc(100vh - 168px);
}

.ai-split-main {
    flex: 1 1 auto;
    min-width: 0;
    overflow: auto;
}

.ai-split.is-open .ai-split-main {
    margin-right: 0;
}

.scheduler-cmdbar .toolbar-group {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px;
}

.scheduler-cmdbar .toolbar-sep {
    width: 1px;
    height: 20px;
    background: var(--rz-base-300, #dee2e6);
    margin: 0 2px;
    flex-shrink: 0;
}

/* Compact dropdowns: fixed height with vertically centered label (no extra top padding) */
.scheduler-cmdbar .rz-dropdown {
    height: 32px !important;
    min-height: 32px !important;
    box-sizing: border-box !important;
    display: inline-flex !important;
    align-items: center !important;
}

.scheduler-cmdbar .rz-dropdown .rz-dropdown-trigger,
.scheduler-cmdbar .rz-dropdown .rz-selectbutton {
    display: inline-flex;
    align-items: center;
}

.scheduler-cmdbar .rz-dropdown .rz-inputtext,
.scheduler-cmdbar .rz-dropdown .rz-dropdown-label {
    font-size: 0.78rem !important;
    line-height: 1.25 !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    margin: 0 !important;
    height: auto !important;
    min-height: 0 !important;
    display: flex !important;
    align-items: center !important;
    overflow: hidden;
    white-space: nowrap;
}

.scheduler-cmdbar .rz-button {
    white-space: nowrap;
}

.scheduler-cmdbar .rush-check {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 0.78rem;
    padding: 0 2px;
    user-select: none;
}
