.bax-calendar-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 12px;
    background: #f6f7f7;
    border: 1px solid #dcdcde;
    border-bottom: none;
}

.bax-calendar-scope {
    font-weight: 600;
}

.bax-calendar-date {
    font-size: 13px;
    color: #50575e;
}

.bax-simple-calendar {
    border: 1px solid #dcdcde;
    background: #fff;
}

.bax-header-row,
.bax-day-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    border-bottom: 1px solid #e5e5e5;
}

.bax-header-row {
    background: #f6f7f7;
    font-weight: 600;
}

.bax-time-head,
.bax-time-cell {
    padding: 12px;
}

.bax-time-cell {
    min-height: 120px;
    border-left: 1px solid #eee;
}

.bax-week-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 0;
    border: 1px solid #dcdcde;
    background: #fff;
}

.bax-week-day {
    border-left: 1px solid #e5e5e5;
    min-height: 260px;
}

.bax-week-day:first-child {
    border-left: none;
}

.bax-week-day-head {
    padding: 10px;
    background: #f6f7f7;
    border-bottom: 1px solid #e5e5e5;
}

.bax-week-day-name {
    font-weight: 600;
}

.bax-week-day-date {
    font-size: 12px;
    color: #666;
    margin-top: 2px;
}

.bax-week-day-body {
    padding: 10px;
}

.bax-empty-day {
    color: #999;
    font-size: 12px;
}

.bax-event-card {
    border-radius: 6px;
    padding: 8px 10px;
    margin-bottom: 8px;
    font-size: 13px;
}

.bax-status-blue {
    background: #2271b1;
    color: #fff;
}

.bax-status-yellow {
    background: #f0b429;
    color: #111;
}

.bax-status-orange {
    background: #d97706;
    color: #fff;
}

.bax-event-title {
    font-weight: 600;
    margin-bottom: 4px;
}

.bax-event-status {
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 6px;
    opacity: 0.95;
}

.bax-event-date,
.bax-event-time,
.bax-event-av {
    font-size: 12px;
    opacity: 0.95;
    margin-bottom: 4px;
}
.bax-month-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    border: 1px solid #dcdcde;
    background: #fff;
}

.bax-month-head {
    padding: 10px;
    background: #f6f7f7;
    border-left: 1px solid #e5e5e5;
    border-bottom: 1px solid #e5e5e5;
    font-weight: 600;
}

.bax-month-head:first-child {
    border-left: none;
}

.bax-month-day {
    min-height: 140px;
    border-left: 1px solid #e5e5e5;
    border-bottom: 1px solid #e5e5e5;
    padding: 8px;
}

.bax-month-day-number {
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 6px;
    color: #444;
}

.bax-month-day.is-outside-month {
    background: #fafafa;
    color: #aaa;
}

.bax-month-day-body {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.bax-mini-event {
    border-radius: 4px;
    padding: 6px 8px;
    font-size: 11px;
    line-height: 1.2;
}
.bax-month-day {
    cursor: pointer;
}

.bax-month-day:hover {
    background: #f8fafc;
}
.bax-back-to-month {
    margin-left: auto;
    padding: 6px 10px;
    border: 1px solid #ccd0d4;
    background: #fff;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
}

.bax-back-to-month:hover {
    background: #f6f7f7;
}
.bax-event-link {
    color: inherit;
    text-decoration: none;
}

.bax-event-link:hover {
    text-decoration: underline;
}
.bax-event-link,
.bax-mini-event-link {
    color: inherit;
    text-decoration: none;
}

.bax-event-link:hover,
.bax-mini-event-link:hover {
    text-decoration: underline;
}

.bax-status-green {
    background: #2e7d32;
    color: #fff;
}

.bax-status-red {
    background: #c62828;
    color: #fff;
}

/* Job status colours */
.bax-status-purple {
    background: #7e3fb2;
    color: #fff;
}

.bax-status-light-blue {
    background: #bfdbfe;
    color: #0f172a;
}

/* Checklist progress colours */
.bax-status-green-shifts-created {
    background: #bbf7d0;
    color: #052e16;
}

.bax-status-green-techs-booked {
    background: #15803d;
    color: #fff;
}

.bax-status-green-complete {
    background: #064e3b;
    color: #fff;
}

.bax-status-voco-ko-pink {
    background: #ec4899;
    color: #fff;
}

/* Checklist icon badges shown on calendar events */
.bax-check-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin-top: 6px;
    margin-bottom: 2px;
    align-items: center;
}

.bax-check-badges-mini {
    margin-top: 4px;
    gap: 4px;
}

.bax-check-badge {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    padding: 2px 5px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.78);
    color: #111827;
    line-height: 1;
    font-size: 12px;
    white-space: nowrap;
}

.bax-check-badges-mini .bax-check-badge {
    padding: 1px 4px;
    font-size: 11px;
}

.bax-check-dot {
    width: 8px;
    height: 8px;
    border-radius: 999px;
    display: inline-block;
    flex: 0 0 auto;
}

.bax-check-badge.is-complete .bax-check-dot {
    background: #16a34a;
}

.bax-check-badge.is-waiting .bax-check-dot {
    background: #f97316;
}

.bax-check-icon {
    display: inline-block;
    line-height: 1;
}

/* Weekly calendar previous/next navigation */
.bax-calendar-nav {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-left: auto;
}

.bax-calendar-nav .bax-calendar-date {
    min-width: 135px;
    text-align: center;
    font-weight: 600;
}

.bax-calendar-nav-button {
    cursor: pointer;
    white-space: nowrap;
}

@media (max-width: 900px) {
    .bax-calendar-toolbar {
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
    }

    .bax-calendar-nav {
        justify-content: space-between;
        margin-left: 0;
    }
}

/* Current day highlight */
.bax-week-day.is-today,
.bax-month-day.is-today {
    background: #fff7ed;
    box-shadow: inset 0 0 0 2px rgba(249, 115, 22, 0.22);
}

.bax-week-day.is-today .bax-week-day-head,
.bax-month-day.is-today .bax-month-day-number {
    font-weight: 700;
}

.bax-week-day.is-today .bax-week-day-head {
    background: #ffedd5;
}

/* Draft shifts generated for review should be visible, but not look confirmed. */
.bax-status-voco-ko-draft {
    background: transparent !important;
    color: #1d4ed8 !important;
    border: 2px dashed #2563eb !important;
    box-shadow: inset 0 0 0 1px rgba(37, 99, 235, 0.18);
}

.bax-status-voco-ko-draft .bax-event-link,
.bax-status-voco-ko-draft .bax-mini-event-link {
    color: #1d4ed8 !important;
}


.bax-status-weekly-prep-summary {
    background: #f8fafc !important;
    color: #0f172a !important;
    border: 2px dashed #64748b !important;
    box-shadow: none !important;
}

.bax-status-weekly-prep-summary .bax-event-status,
.bax-status-weekly-prep-summary .bax-event-time,
.bax-status-weekly-prep-summary .bax-event-av {
    color: #334155 !important;
}


/* Month view: make times and summary totals visible on compact cards */
.bax-mini-event-time {
    display: block;
    font-weight: 700;
    font-size: 11px;
    line-height: 1.15;
    margin-bottom: 3px;
}

.bax-mini-event-title {
    display: block;
    font-weight: 600;
    margin-bottom: 2px;
}

.bax-mini-event-meta {
    display: block;
    font-size: 10.5px;
    opacity: 0.95;
}

.bax-mini-summary {
    padding: 7px 8px;
}

.bax-mini-summary-title {
    font-weight: 700;
    margin-bottom: 4px;
}

.bax-mini-summary-line {
    font-size: 11px;
    line-height: 1.25;
    margin-bottom: 2px;
}

.bax-mini-summary-note {
    font-size: 10px;
    line-height: 1.2;
    margin-top: 4px;
    opacity: 0.85;
}


/* Shift-level technician status toggle */
.bax-check-badge.is-clickable {
    cursor: pointer;
    border: 1px solid rgba(17, 24, 39, 0.18);
    transition: transform 0.12s ease, box-shadow 0.12s ease, opacity 0.12s ease;
}

.bax-check-badge.is-clickable:hover,
.bax-check-badge.is-clickable:focus {
    transform: translateY(-1px);
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.18);
    outline: none;
}

.bax-check-badge.is-updating {
    opacity: 0.55;
    pointer-events: none;
}

.bax-check-badge.is-tech-unallocated .bax-check-dot {
    background: #d1d5db;
    border: 1px solid #6b7280;
}

.bax-check-badge.is-tech-requested .bax-check-dot {
    background: #f97316;
}

.bax-check-badge.is-tech-confirmed .bax-check-dot {
    background: #16a34a;
}


/* Cancelled shift minimise toggle */
.bax-calendar-cancel-toggle {
    margin-left: 10px;
    white-space: nowrap;
}

.bax-calendar-cancel-toggle.is-active {
    border-color: #2271b1;
    color: #1d4ed8;
    font-weight: 600;
}

.bax-event-card-cancelled-minimized {
    padding: 5px 8px !important;
    opacity: 0.86;
}

.bax-event-card-cancelled-minimized .bax-event-title {
    margin-bottom: 0;
    font-size: 12px;
    line-height: 1.2;
}

.bax-mini-event-cancelled-minimized {
    padding: 4px 6px !important;
    opacity: 0.86;
}

.bax-mini-event-cancelled-minimized .bax-mini-event-title {
    margin-bottom: 0;
    font-size: 10.5px;
    line-height: 1.15;
}

/* Assigned technician display */
.bax-event-tech-name {
    font-size: 12px;
    line-height: 1.25;
    margin: 4px 0 2px;
    font-weight: 700;
}

.bax-mini-event-tech-name {
    font-size: 10.5px;
    line-height: 1.15;
    margin: 2px 0 3px;
    font-weight: 700;
}


/* Separate job-calendar status colours. These deliberately do not use the ops-calendar shift completion colours. */
.bax-job-calendar-event.bax-job-status-confirmed,
.bax-job-status-confirmed {
    background: #15803d;
    color: #ffffff;
}

.bax-job-calendar-event.bax-job-status-tentative,
.bax-job-status-tentative {
    background: #7e3fb2;
    color: #ffffff;
}

.bax-job-calendar-event.bax-job-status-inquiry,
.bax-job-status-inquiry {
    background: #bfdbfe;
    color: #0f172a;
}


.bax-job-calendar-event.bax-job-status-invoiced,
.bax-job-status-invoiced {
    background: #f97316;
    color: #ffffff;
}

.bax-job-calendar-event.bax-job-status-cancelled,
.bax-job-status-cancelled {
    background: #c62828;
    color: #ffffff;
}

.bax-job-calendar-event.bax-job-status-unknown,
.bax-job-status-unknown {
    background: #e5e7eb;
    color: #0f172a;
}

/* Connecteam-style compact cards + popup details */
.bax-event-card,
.bax-mini-event {
    border-radius: 9px;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.12);
    cursor: pointer;
    overflow: hidden;
}

.bax-event-card:hover,
.bax-mini-event:hover {
    filter: brightness(0.98);
    box-shadow: 0 2px 7px rgba(15, 23, 42, 0.22);
}

.bax-calendar-popup-card:focus {
    outline: 2px solid #2563eb;
    outline-offset: 2px;
}

.bax-card-time,
.bax-mini-event-time {
    font-weight: 800;
    letter-spacing: 0.01em;
}

.bax-event-card .bax-event-title,
.bax-mini-event .bax-mini-event-title {
    line-height: 1.25;
}

.bax-event-card .bax-event-date,
.bax-event-card .bax-event-av {
    display: none;
}

.bax-mini-event .bax-check-badges {
    margin-top: 5px;
}

.bax-calendar-popup-wrap {
    position: fixed;
    inset: 0;
    z-index: 99999;
}

.bax-calendar-popup-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.42);
}

.bax-calendar-popup {
    position: relative;
    z-index: 1;
    width: min(520px, calc(100vw - 32px));
    margin: 8vh auto 0;
    background: #ffffff;
    border-radius: 14px;
    box-shadow: 0 24px 70px rgba(15, 23, 42, 0.32);
    padding: 22px 24px 20px;
    color: #0f172a;
}

.bax-calendar-popup-close {
    position: absolute;
    top: 10px;
    right: 12px;
    border: 0;
    background: transparent;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
    color: #64748b;
}

.bax-calendar-popup-title {
    font-size: 20px;
    font-weight: 800;
    line-height: 1.25;
    padding-right: 34px;
}

.bax-calendar-popup-status {
    display: inline-block;
    margin-top: 8px;
    padding: 3px 9px;
    border-radius: 999px;
    background: #e5e7eb;
    color: #111827;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

.bax-calendar-popup-details {
    margin: 18px 0 0;
}

.bax-calendar-popup-row {
    display: grid;
    grid-template-columns: 140px minmax(0, 1fr);
    gap: 12px;
    padding: 9px 0;
    border-top: 1px solid #e5e7eb;
}

.bax-calendar-popup-row dt {
    margin: 0;
    color: #64748b;
    font-weight: 700;
}

.bax-calendar-popup-row dd {
    margin: 0;
    color: #0f172a;
    font-weight: 600;
}

.bax-calendar-popup-actions {
    margin-top: 18px;
    display: flex;
    justify-content: flex-end;
}

@media (max-width: 640px) {
    .bax-calendar-popup {
        margin-top: 24px;
        padding: 18px;
    }

    .bax-calendar-popup-row {
        grid-template-columns: 1fr;
        gap: 2px;
    }
}


/* Job status calendar is static: no shift popups, no hand cursor. */
.bax-job-calendar-static {
    cursor: default !important;
}

.bax-job-calendar-static:hover {
    filter: none !important;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.12) !important;
}

.bax-job-calendar-static .bax-event-status,
.bax-job-calendar-static .bax-mini-event-meta {
    text-transform: uppercase;
    letter-spacing: 0.02em;
    font-weight: 800;
}

/* Ops calendar account manager filter */
.bax-calendar-account-manager-filter {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-left: 8px;
    font-size: 12px;
    font-weight: 700;
    color: #475569;
}

.bax-calendar-account-manager-filter select {
    min-width: 170px;
    max-width: 260px;
    height: 32px;
    padding: 2px 28px 2px 8px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    background: #fff;
    color: #0f172a;
    font-size: 12px;
}

.bax-calendar-nav .bax-calendar-account-manager-filter {
    margin-left: 0;
}

/* Bax Ops page sidebar navigation
   Both calendar shortcodes use the same breakout shell. This deliberately ignores
   the WordPress page/content width so Ops Calendar and Job Status start at the
   same left and top position regardless of the page template. */
.bax-ops-page-layout {
    display: grid;
    grid-template-columns: 190px minmax(0, 1fr);
    gap: 14px;
    align-items: start;
    box-sizing: border-box;
    width: calc(100vw - 32px);
    max-width: calc(100vw - 32px);
    margin-top: 0 !important;
    margin-bottom: 0;
    margin-left: calc(50% - 50vw + 16px) !important;
    margin-right: calc(50% - 50vw + 16px) !important;
    padding: 0;
    position: relative;
    left: auto;
    transform: none;
    clear: both;
}

.bax-ops-page-layout-calendar {
    margin-top: 0 !important;
}

.bax-ops-page-layout * {
    box-sizing: border-box;
}

.bax-ops-page-sidebar {
    width: 190px;
    position: sticky;
    top: 14px;
    z-index: 20;
    border: 1px solid #dbe3ec;
    border-radius: 12px;
    background: #ffffff;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.08);
    overflow: hidden;
    align-self: start;
}

.bax-ops-sidebar-title {
    padding: 12px 14px;
    background: #0f172a;
    color: #ffffff;
    font-weight: 800;
    letter-spacing: 0.02em;
}

.bax-ops-sidebar-nav {
    display: flex;
    flex-direction: column;
    padding: 8px;
    gap: 6px;
}

.bax-ops-sidebar-link {
    display: block;
    padding: 10px 12px;
    border-radius: 9px;
    color: #334155;
    text-decoration: none;
    font-weight: 700;
    line-height: 1.2;
}

.bax-ops-sidebar-link:hover {
    background: #f1f5f9;
    color: #0f172a;
    text-decoration: none;
}

.bax-ops-sidebar-link.is-active {
    background: #2271b1;
    color: #ffffff;
}

.bax-ops-page-main {
    min-width: 0;
    width: 100%;
    max-width: none;
    margin: 0 !important;
    padding: 0 0 32px 0 !important;
    background: #ffffff;
    overflow-x: auto;
}

.bax-ops-calendar-shortcode-wrapper {
    margin: 0 !important;
    padding: 0 !important;
    max-width: none;
}

.bax-ops-calendar-title {
    margin: 0 0 8px 0 !important;
    padding: 0 !important;
    line-height: 1.25;
}


/* Normalize the front-end page-template vertical offset.
   The Job Status page template adds extra top spacing compared with the Ops page,
   so pull only the job calendar shell up on desktop to align both dashboards. */
@media (min-width: 981px) {
    .bax-ops-page-layout-mode-jobs {
        margin-top: -66px !important;
    }
}

@media (max-width: 980px) {
    .bax-ops-page-layout {
        display: block;
        width: 100%;
        max-width: 100%;
        margin: 0;
        padding: 0;
        left: auto;
        transform: none;
    }

    .bax-ops-page-sidebar {
        position: static;
        width: 100%;
        margin-bottom: 12px;
    }

    .bax-ops-page-main {
        width: 100%;
        padding: 0;
        overflow-x: auto;
    }

    .bax-ops-sidebar-nav {
        flex-direction: row;
        flex-wrap: wrap;
    }
}


/* Crew offer controls inside Ops Calendar popup */
.bax-calendar-popup-offers { margin-top: 14px; border-top: 1px solid #e5e7eb; padding-top: 12px; }
.bax-calendar-popup-offers details { margin: 0; }
.bax-calendar-popup-offers summary.button { display: inline-block; cursor: pointer; }
.bax-calendar-popup-offers .bax-offer-panel { box-sizing: border-box; max-width: 100% !important; }
.bax-calendar-popup-offers .bax-offer-tech-list { max-height: 260px; overflow: auto; padding-right: 3px; }
.bax-offer-tech-row.is-unsuitable { opacity: 0.78; }
.bax-offer-tech-row.is-unsuitable input { accent-color: #d63638; }
.bax-offer-tech-row.is-suitable input { accent-color: #008a20; }


/* Collapse shift details once technician offer list is loaded */
.bax-calendar-popup.is-offering {
    width: min(620px, calc(100vw - 32px));
    max-height: calc(100vh - 48px);
    margin-top: 24px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.bax-calendar-popup.is-offering .bax-calendar-popup-summary {
    padding-bottom: 10px;
    border-bottom: 1px solid #e5e7eb;
    margin-bottom: 10px;
}

.bax-calendar-popup.is-offering .bax-calendar-popup-title {
    font-size: 16px;
    line-height: 1.2;
}

.bax-calendar-popup.is-offering .bax-calendar-popup-status {
    margin-top: 5px;
    padding: 2px 8px;
    font-size: 11px;
}

.bax-calendar-popup.is-offering:not(.show-details) .bax-calendar-popup-details,
.bax-calendar-popup.is-offering:not(.show-details) .bax-calendar-popup-actions {
    display: none;
}

.bax-calendar-popup .bax-popup-detail-toggle {
    display: none;
    margin-top: 8px;
}

.bax-calendar-popup.is-offering .bax-popup-detail-toggle {
    display: inline-block;
}

.bax-calendar-popup.is-offering .bax-calendar-popup-offers {
    margin-top: 0;
    border-top: 0;
    padding-top: 0;
    min-height: 0;
    overflow: hidden;
}

.bax-calendar-popup.is-offering .bax-offer-panel {
    border: 0 !important;
    padding: 0 !important;
    margin-top: 0 !important;
}

.bax-calendar-popup.is-offering .bax-offer-tech-list {
    max-height: calc(100vh - 245px);
    overflow: auto;
    padding-right: 6px;
}

.bax-calendar-popup.is-offering .bax-offer-details > summary {
    display: none !important;
}

.bax-calendar-popup.is-offering .bax-offer-dynamic-panel {
    display: block;
}


/* v3.1.6: reliable popup offer loader */
.bax-calendar-popup-offers .bax-load-offers { margin-bottom: 8px; }
.bax-calendar-popup.is-offering .bax-calendar-popup-offers .bax-load-offers { display: none; }
.bax-calendar-popup.is-offering .bax-offer-dynamic-panel { min-height: 140px; }

/* Bax Ops v3.1.7 offer status display */
.bax-offer-current-status {
    border: 1px solid #dcdcde;
    border-radius: 8px;
    padding: 10px;
    margin: 0 0 10px;
    background: #f6f7f7;
}
.bax-offer-current-status.is-offered {
    border-color: #f0b849;
    background: #fff8e5;
}
.bax-offer-counts {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 6px;
    font-size: 12px;
}
.bax-offer-counts span {
    background: rgba(255,255,255,.8);
    border: 1px solid rgba(0,0,0,.08);
    border-radius: 999px;
    padding: 2px 8px;
}
.bax-offer-recipient-list {
    margin: 8px 0 0 18px;
    padding: 0;
    font-size: 12px;
}
.bax-offer-recipient-status {
    font-weight: 700;
    text-transform: uppercase;
    font-size: 11px;
    color: #555;
}
.bax-offer-success {
    border: 1px solid #00a32a;
    background: #edfaef;
    color: #116329;
    border-radius: 8px;
    padding: 8px 10px;
    margin-bottom: 10px;
    font-weight: 700;
}
.bax-offer-error {
    border: 1px solid #d63638;
    background: #fcf0f1;
    color: #8a2424;
    border-radius: 8px;
    padding: 8px 10px;
    margin: 0 0 10px;
}

/* v3.2.1 front-end shift cancellation */
.bax-calendar-popup-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}
.bax-button-danger {
    border-color: #b91c1c !important;
    color: #b91c1c !important;
    background: #fff !important;
}
.bax-button-danger:hover,
.bax-button-danger:focus {
    background: #fee2e2 !important;
    color: #7f1d1d !important;
}

/* Front-end manual shift creation */
.bax-create-shift-button {
    white-space: nowrap;
}

.bax-create-shift-modal {
    max-width: 720px;
}

.bax-create-shift-form {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin-top: 12px;
}

.bax-create-field {
    display: flex;
    flex-direction: column;
    gap: 5px;
    font-size: 13px;
    font-weight: 600;
}

.bax-create-field span,
.bax-create-skills legend {
    color: #334155;
    font-weight: 700;
}

.bax-create-field input,
.bax-create-field select,
.bax-create-field textarea {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.bax-create-field-wide {
    grid-column: 1 / -1;
}

.bax-create-skills {
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 10px 12px 12px;
    margin: 0;
}

.bax-create-skills legend {
    padding: 0 6px;
}

.bax-create-skill-option {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    margin: 4px 10px 4px 0;
    font-size: 12px;
    font-weight: 500;
}

.bax-create-shift-message {
    grid-column: 1 / -1;
    min-height: 18px;
    font-size: 13px;
}

.bax-create-shift-message.is-loading {
    color: #475569;
}

.bax-create-shift-message.is-success {
    color: #15803d;
    font-weight: 700;
}

.bax-create-shift-message.is-error {
    color: #b91c1c;
    font-weight: 700;
}

.bax-create-shift-form .bax-calendar-popup-actions {
    grid-column: 1 / -1;
}

@media (max-width: 720px) {
    .bax-create-shift-form {
        grid-template-columns: 1fr;
    }
}

/* v3.2.4: scrollable accordion popups */
.bax-calendar-popup {
    max-height: 86vh;
    overflow-y: auto;
}

.bax-calendar-popup-accordion .bax-calendar-popup-summary {
    display: block;
}

.bax-popup-section {
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    margin: 10px 0;
    background: #fff;
    overflow: hidden;
}

.bax-popup-section > summary {
    cursor: pointer;
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 10px 12px;
    font-weight: 700;
    color: #0f172a;
    background: #f8fafc;
    border-bottom: 1px solid transparent;
}

.bax-popup-section > summary::-webkit-details-marker {
    display: none;
}

.bax-popup-section[open] > summary {
    border-bottom-color: #e2e8f0;
}

.bax-popup-section-chevron {
    transition: transform .15s ease;
    color: #64748b;
    font-size: 12px;
}

.bax-popup-section[open] .bax-popup-section-chevron {
    transform: rotate(180deg);
}

.bax-popup-section-body {
    padding: 12px;
}

.bax-popup-section .bax-calendar-popup-details {
    margin: 0;
}

.bax-popup-section-offers .bax-calendar-popup-offers {
    margin-top: 0;
    padding-top: 0;
    border-top: 0;
}

.bax-popup-section-actions .bax-calendar-popup-actions,
.bax-create-shift-form > .bax-calendar-popup-actions {
    margin-top: 10px;
}

.bax-create-shift-accordion {
    display: block;
}

.bax-create-section-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.bax-create-shift-accordion .bax-create-skills {
    border: 0;
    padding: 0;
}

.bax-create-shift-accordion .bax-create-shift-message {
    margin: 8px 0;
}

@media (max-width: 720px) {
    .bax-create-section-grid {
        grid-template-columns: 1fr;
    }
    .bax-calendar-popup {
        width: calc(100vw - 24px);
        max-height: 88vh;
    }
}

/* v3.2.5 base shifts / direct assignment */
.bax-create-assignment-mode label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-right: 14px;
    margin-top: 6px;
}
.bax-create-direct-tech select {
    width: 100%;
}
.bax-calendar-event.is-base-shift,
.bax-event-card.is-base-shift {
    background: #f3f4f6 !important;
    border-color: #9ca3af !important;
    color: #111827 !important;
}

/* v3.2.6 searchable job picker in create shift modal */
.bax-create-job-search-field {
    position: relative;
}
.bax-create-job-search {
    width: 100%;
}
.bax-create-job-results {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: calc(100% - 18px);
    z-index: 10050;
    max-height: 260px;
    overflow-y: auto;
    background: #fff;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    box-shadow: 0 14px 30px rgba(15, 23, 42, .18);
    padding: 6px;
}
.bax-job-result {
    display: block;
    width: 100%;
    text-align: left;
    border: 0;
    background: transparent;
    border-radius: 6px;
    padding: 8px 10px;
    cursor: pointer;
    color: #0f172a;
}
.bax-job-result strong,
.bax-job-result span {
    display: block;
}
.bax-job-result span {
    margin-top: 2px;
    color: #64748b;
    font-size: 12px;
    line-height: 1.25;
}
.bax-job-result:hover,
.bax-job-result.is-active {
    background: #eff6ff;
}
.bax-job-result.is-base {
    background: #f8fafc;
}
.bax-job-result.is-empty {
    cursor: default;
    color: #64748b;
}
.bax-create-job-selected {
    display: block;
    margin-top: 5px;
    color: #64748b;
    line-height: 1.3;
}
