.booking-more-button, .floating-create-button { display: none; }
.booking-secondary-actions { display: flex; gap: 8px; }
@media (max-width: 1000px) {
  #page-bookings > .bookings-top { position: relative; }
  #page-bookings > .bookings-top > div:first-child { padding-right: 52px; }
  .bookings-top .mobile-create-original { display: none !important; }
  .booking-more-button { display: grid !important; place-items: center; position: absolute; right: 0; top: 0; width: 44px !important; min-width: 44px; height: 44px !important; min-height: 44px; padding: 0 !important; border: 1px solid var(--border); border-radius: 12px; background: var(--surface); color: var(--text); font-size: 28px !important; cursor: pointer; }
  #page-bookings .bookings-actions { margin: 0 !important; padding: 0 !important; gap: 0 !important; }
  #bookingSecondaryActions { display: none; position: absolute; top: 50px; right: 0; z-index: 50; width: 190px; padding: 6px; border: 1px solid var(--border); border-radius: 14px; background: var(--surface); box-shadow: 0 8px 28px #0003; }
  #bookingSecondaryActions.is-open { display: flex; flex-direction: column; gap: 4px; }
  #bookingSecondaryActions button { width: 100% !important; min-height: 44px !important; height: auto !important; padding: 10px 12px !important; font-size: 15px !important; text-align: left; border: none; }
  .floating-create-button:not([hidden]) { display: grid !important; place-items: center; position: fixed; bottom: calc(20px + env(safe-area-inset-bottom)); right: calc(20px + env(safe-area-inset-right)); width: 56px !important; height: 56px !important; min-height: 56px !important; border: none; border-radius: 50%; padding: 0 !important; font: 400 34px/1 system-ui !important; color: #fff; background: #1597b5; box-shadow: 0 5px 18px #0004; z-index: 100; cursor: pointer; }
  body:has(.modal-backdrop.open) .floating-create-button, body:has(.sidebar.open) .floating-create-button { display: none !important; }
  #page-bookings, #page-drivers, #page-customers, #page-partners { padding-bottom: 88px; }
}

@media (max-width: 1000px) {
  #bookingsTableContainer td:nth-child(9)::after { display: none !important; }
}
.quick-driver-control { position: relative; display: inline-flex; align-items: center; max-width: 100%; vertical-align: baseline; color: var(--muted); }
.quick-driver-control > svg { position: absolute; right: 2px; top: 50%; transform: translateY(-50%); pointer-events: none; }
.quick-driver-select { display: block; position: static; opacity: 1; appearance: none; -webkit-appearance: none; font: inherit; line-height: inherit; border: 0; border-radius: 4px; background: transparent; color: var(--muted); padding: 0 22px 0 0; height: 36px; max-width: 100%; cursor: pointer; box-sizing: border-box; }
.quick-driver-select.driver-assigned { color: var(--success-text); font-weight: 600; }
.quick-driver-select option { color: var(--text); background: var(--surface); }
.quick-driver-select:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
#bookingsTableContainer .quick-driver-select[data-pointer-focus="true"]:focus {
  outline: none !important;
  box-shadow: none !important;
}
.quick-driver-select:disabled { opacity: .6; cursor: progress; }
.floating-create-button > svg { display: block; width: 26px; height: 26px; flex: none; pointer-events: none; }
@media(max-width:1000px) {
  body.mobile-menu-open .floating-create-button { display: none !important; }
  #bookingsTableContainer td:nth-child(9) { display: flex !important; align-items: center !important; gap: 5px; }
  #bookingsTableContainer td:nth-child(9)::before { margin: 0 !important; flex: 0 0 auto; }
  #bookingsTableContainer .quick-driver-select { min-height: 44px !important; height: 44px !important; font-size: 14.5px !important; line-height: 1.38 !important; }
  #dateFilter { display: flex !important; align-items: center; justify-content: center; min-width: 0 !important; max-width: 100% !important; width: 100% !important; box-sizing: border-box; padding: 0 12px !important; height: 48px !important; min-height: 48px !important; line-height: normal !important; text-align: center; -webkit-appearance: none; appearance: none; }
  #dateFilter::-webkit-date-and-time-value { display: block; text-align: center; margin: 0; padding: 0; min-height: 0; line-height: 46px; }
  #dateFilter::-webkit-datetime-edit { display: inline-flex; align-items: center; justify-content: center; padding: 0; line-height: normal; }
  #dateFilter::-webkit-datetime-edit-fields-wrapper { padding: 0; }
}
#bookingsTableContainer .quick-driver-select {
  appearance: none !important;
  -webkit-appearance: none !important;
  background-image: none !important;
}

.sidebar-edge { display: none; }
@media (min-width: 1001px) {
  .sidebar-edge { display: block; position: relative; flex: 0 0 0; width: 0; z-index: 40; }
  #sidebarToggle { position: sticky; top: calc(50dvh - 24px); display: flex; align-items: center; justify-content: center; width: 24px; min-width: 24px; height: 48px; margin-left: -12px; padding: 0; border: 0; border-radius: 6px; background: var(--surface); color: var(--muted); cursor: pointer; }
  #sidebarToggle:hover { color: var(--accent); background: var(--surface-alt, var(--surface)); }
  #sidebarToggle:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
  html body.sidebar-collapsed #sidebar.sidebar { width: 72px; flex: 0 0 72px; padding: 28px 12px; }
  body.sidebar-collapsed #sidebar .brand-full,
  body.sidebar-collapsed #sidebar .menu-label,
  body.sidebar-collapsed #sidebar .sidebar-session-state,
  body.sidebar-collapsed #sidebar .sidebar-session-database,
  body.sidebar-collapsed #sidebar .sidebar-session-mode,
  body.sidebar-collapsed #sidebar .signout-label { display: none; }
  body.sidebar-collapsed #sidebar .brand-compact { display: inline; }
  body.sidebar-collapsed #sidebar .sidebar-top { justify-content: center; }
  body.sidebar-collapsed #sidebar .menu-item { justify-content: center; padding: 0; gap: 0; }
  body.sidebar-collapsed #sidebar .theme-options { flex-direction: column; }
  body.sidebar-collapsed #sidebar .theme-control { padding-left: 0; padding-right: 0; }
  body.sidebar-collapsed #sidebar .sidebar-session { padding: 8px 0 0; }
  html body.sidebar-collapsed #sidebar .sidebar-signout { justify-content: center; }
  body.sidebar-collapsed #sidebar .sidebar-signout svg { width: 22px; height: 22px; }
  body.sidebar-collapsed #sidebarToggle svg { transform: rotate(180deg); }
}

.brand-compact { display: none; }
#sidebar .menu-item { width: 100%; border: 0; background: transparent; text-align: left; font-family: inherit; }
#sidebar .menu-item:hover { background: var(--canvas); }
#sidebar .menu-item.active { background: var(--selected); }
#sidebar .menu-item:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
#sidebar .menu-icon { display: flex; align-items: center; justify-content: center; width: 22px; flex: 0 0 22px; }
#sidebar .menu-icon svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
