.ssb {
    display: flex;
    flex-direction: column;
    gap: 12px;
    min-width: min(640px, 90vw);
    color: var(--app-fg, #111827);
}

.ssb--wide {
    min-width: min(1080px, 94vw);
}

.ssb-title {
    font-size: .9375rem;
    font-weight: 600;
}

.ssb-sub {
    font-size: .8125rem;
    color: var(--app-muted, #6b7280);
}

.ssb-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: 12px;
}

.ssb-field {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 160px;
    font-size: .75rem;
    font-weight: 600;
    color: var(--app-muted, #6b7280);
}

.ssb-field--grow {
    flex: 1 1 220px;
}

.ssb-note {
    font-size: .75rem;
    color: var(--app-muted, #6b7280);
}

.ssb-actions {
    display: flex;
    justify-content: flex-end;
}

.ssb-toolbar-meta {
    padding-bottom: 6px;
    font-size: .8125rem;
    color: var(--app-muted, #6b7280);
}

.ssb-toolbar-action {
    margin-left: auto;
}

.ssb-state {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 0;
    font-size: .8125rem;
    color: var(--app-muted, #6b7280);
}

.ssb-state--error {
    color: var(--app-danger, #b91c1c);
}

/* No upcoming days: the message, with Create schedule beside it (Invite to Schedule's tab). */
.sip-no-schedule {
    flex-wrap: wrap;
    justify-content: space-between;
}

.sip-no-schedule .lua-btn {
    flex-shrink: 0;
}

.ssb-table-wrap {
    border: 1px solid var(--app-border, #e5e7eb);
    border-radius: 8px;
    overflow: auto;
}

.ssb-table {
    width: 100%;
    border-collapse: collapse;
    font-size: .8125rem;
}

.ssb-table th,
.ssb-table td {
    padding: 8px 12px;
    border-bottom: 1px solid var(--app-border, #e5e7eb);
    text-align: left;
}

.ssb-table th {
    font-weight: 600;
    white-space: nowrap;
    color: var(--app-muted, #6b7280);
    background: var(--app-surface-soft, #f9fafb);
}

.ssb-table td.ssb-nowrap {
    white-space: nowrap;
}

.ssb-table tbody tr:last-child td {
    border-bottom: 0;
}

.ssb-pager {
    display: flex;
    align-items: center;
    gap: 10px;
}

.sip {
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-width: min(560px, 90vw);
    color: var(--app-fg, #111827);
}

.sip-heading {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.sip-label {
    font-size: .8125rem;
    font-weight: 600;
}

.sip-choice {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: .8125rem;
    cursor: pointer;
}

.sip-choice input {
    margin-top: 3px;
    accent-color: var(--app-primary, #2563eb);
}

.sip-muted {
    margin-left: 6px;
    font-size: .75rem;
    color: var(--app-muted, #6b7280);
}

.sip-days,
.sip-links {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px 12px;
    padding-left: 22px;
}

.sip-days {
    gap: 6px;
}

.sip-day {
    display: inline-flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 1px;
    padding: 6px 12px;
    border: 1px solid var(--app-border, #d1d5db);
    border-radius: 10px;
    background: var(--app-surface, #fff);
    color: inherit;
    font: inherit;
    cursor: pointer;
}

.sip-day:hover:not(:disabled) {
    background: var(--app-surface-soft, #f3f4f6);
}

.sip-day.is-on {
    border-color: var(--app-primary, #2563eb);
    background: var(--app-primary-soft, #eff6ff);
    color: var(--app-primary, #1d4ed8);
}

.sip-day:disabled {
    opacity: .5;
    cursor: not-allowed;
}

.sip-day:focus-visible,
.sip-link:focus-visible {
    outline: 2px solid var(--app-primary, #2563eb);
    outline-offset: 1px;
}

.sip-day-date {
    font-size: .8125rem;
    font-weight: 600;
}

.sip-day-count {
    font-size: .6875rem;
    opacity: .8;
}

.sip-link {
    padding: 0;
    border: 0;
    background: none;
    color: var(--app-primary, #2563eb);
    font: inherit;
    font-size: .75rem;
    text-decoration: underline;
    cursor: pointer;
}

.sip-links .sip-muted {
    margin-left: 0;
}

.ssb-pager-text {
    font-size: .75rem;
    color: var(--app-muted, #6b7280);
}

/* Invite to Schedule: the invite email (template, tokens, preview, editor) */

.sip--email {
    min-width: min(980px, 94vw);
}

.sip-email {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 6px;
    padding-top: 12px;
    border-top: 1px solid var(--app-border, #e5e7eb);
}

.sip-email-head {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 8px;
}

.sip-email-edit {
    margin-left: auto;
    font-size: .8125rem;
}

.sip-badge {
    padding: 1px 8px;
    border-radius: 999px;
    background: var(--app-primary-soft, #eff6ff);
    color: var(--app-primary, #1d4ed8);
    font-size: .6875rem;
    font-weight: 600;
}

.sip-tabs {
    display: flex;
    gap: 4px;
    border-bottom: 1px solid var(--app-border, #e5e7eb);
}

.sip-tab {
    padding: 6px 12px;
    border: 0;
    border-bottom: 2px solid transparent;
    background: none;
    color: var(--app-muted, #6b7280);
    font: inherit;
    font-size: .8125rem;
    cursor: pointer;
}

.sip-tab.is-on {
    border-bottom-color: var(--app-primary, #2563eb);
    color: var(--app-primary, #1d4ed8);
    font-weight: 600;
}

.sip-tab:focus-visible,
.sip-token:focus-visible {
    outline: 2px solid var(--app-primary, #2563eb);
    outline-offset: 1px;
}

.sip-picker {
    max-width: 420px;
}

.sip-subject {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    font-size: .8125rem;
    font-weight: 600;
}

.sip-subject .sip-muted {
    font-weight: 400;
}

.sip-preview-note {
    color: var(--app-fg, #111827);
}

.sip-frame {
    width: 100%;
    height: 460px;
    border: 1px solid var(--app-border, #e5e7eb);
    border-radius: 8px;
    background: #fff;
}

.sip-edit {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 280px;
    gap: 12px;
}

.sip-edit-main {
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-width: 0;
}

.sip-edit-side {
    display: flex;
    flex-direction: column;
    gap: 6px;
    max-height: 420px;
    overflow: auto;
}

.sip-edit-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

.sip-input {
    padding: 5px 8px;
    border: 1px solid var(--app-border, #d1d5db);
    border-radius: 6px;
    background: var(--app-surface, #fff);
    color: var(--app-fg, #111827);
    font: inherit;
    font-size: .8125rem;
    font-weight: 400;
}

.sip-token-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.sip-token-list li {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 1px;
}

.sip-token,
.sip-code {
    font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
    font-size: .75rem;
}

.sip-token {
    padding: 1px 6px;
    border: 1px solid var(--app-border, #d1d5db);
    border-radius: 4px;
    background: var(--app-surface-soft, #f9fafb);
    color: var(--app-fg, #111827);
    cursor: pointer;
}

.sip-token:hover {
    border-color: var(--app-primary, #2563eb);
}

.sip-ok {
    color: #047857;
}

.sip-error {
    color: var(--app-danger, #b91c1c);
}

@media (max-width: 900px) {
    .sip-edit {
        grid-template-columns: minmax(0, 1fr);
    }
}

/* Transfer Offer: the application picker */

.tot-search {
    width: 100%;
}

.tot-table-wrap {
    max-height: min(520px, 60vh);
}

.tot-table thead th {
    position: sticky;
    top: 0;
    z-index: 1;
}

.tot-table th.tot-num,
.tot-table td.tot-num {
    text-align: right;
    white-space: nowrap;
}

.tot-select {
    width: 36px;
    text-align: center;
}

.tot-select input {
    accent-color: var(--app-primary, #2563eb);
    cursor: pointer;
}

.tot-sr {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
}

.tot-sort {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 0;
    border: 0;
    background: none;
    color: inherit;
    font: inherit;
    font-weight: 600;
    cursor: pointer;
}

.tot-sort.is-on {
    color: var(--app-primary, #1d4ed8);
}

.tot-sort:focus-visible {
    outline: 2px solid var(--app-primary, #2563eb);
    outline-offset: 2px;
}

.tot-sort-arrow {
    font-size: .625rem;
    opacity: .7;
}

.tot-group td {
    background: var(--app-surface-soft, #f9fafb);
    font-weight: 600;
}

.tot-row {
    cursor: pointer;
}

.tot-row:hover td {
    background: var(--app-surface-soft, #f3f4f6);
}

.tot-row.is-on td {
    background: var(--app-primary-soft, #eff6ff);
}

.tot-summary {
    color: var(--app-fg, #111827);
}

/* Widen the dialog that hosts the Transfer Offer picker (same :has() pattern as the screening
   report popup) so all eight columns fit without a horizontal scroll. */
.dxbl-modal:has(.tot) .dxbl-popup,
.dxbl-modal:has(.tot) .dxbl-modal-dialog,
.dxbl-modal:has(.tot) .modal-dialog {
    width: min(1240px, 96vw) !important;
    max-width: 96vw !important;
}

/* Invite to Schedule: who gets the invite — invited already (and when), booked, marked as appeared.
   Ticked rows are sent to; already-invited applicants start unticked. */

.sip-recipients {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.sip-recipients-head {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 4px 8px;
}

.sip-recipients .sip-links {
    padding-left: 0;
}

.sip-recipients-table {
    max-height: 260px;
}

.sip-recipients-table thead th {
    position: sticky;
    top: 0;
    z-index: 1;
}

.sip-recipients-table tbody tr.is-on td {
    background: var(--app-primary-soft, #eff6ff);
}

.sip-col-tick {
    width: 34px;
    text-align: center !important;
}

.sip-col-tick input {
    accent-color: var(--app-primary, #2563eb);
    cursor: pointer;
}

.sip-col-tick input:disabled {
    cursor: not-allowed;
}

.sip-muted--flush {
    margin-left: 0;
}

.sip-pill {
    display: inline-flex;
    align-items: center;
    margin-left: 6px;
    padding: 1px 8px;
    border-radius: 999px;
    border: 1px solid transparent;
    font-size: .6875rem;
    font-weight: 600;
    white-space: nowrap;
}

td > .sip-pill:first-child {
    margin-left: 0;
}

.sip-pill--ok {
    background: var(--app-success-soft, #ecfdf5);
    border-color: var(--app-success-border, #a7f3d0);
    color: var(--app-success, #047857);
}

.sip-pill--bad {
    background: var(--app-danger-soft, #fef2f2);
    border-color: var(--app-danger-border, #fecaca);
    color: var(--app-danger, #b91c1c);
}

.sip-mark {
    padding: 2px 10px;
    border: 1px solid var(--app-primary-border, #bfdbfe);
    border-radius: 999px;
    background: var(--app-primary-soft, #eff6ff);
    color: var(--app-primary, #1d4ed8);
    font: inherit;
    font-size: .75rem;
    font-weight: 600;
    cursor: pointer;
}

.sip-mark:hover:not(:disabled) {
    background: var(--app-primary, #2563eb);
    color: #fff;
}

.sip-mark:disabled {
    opacity: .6;
    cursor: default;
}

.sip-mark:focus-visible {
    outline: 2px solid var(--app-primary, #2563eb);
    outline-offset: 1px;
}

.sip-recipients td .sip-link {
    margin-left: 8px;
}

/* Invite to Schedule's own tab (LeaseUpScheduleInvitePage): the dialog's frame drawn as a page — full width,
   no shadow or height cap — with its Send bar kept in view at the bottom while the page scrolls. */

.sip-page-shell {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.sip-page-head {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: 10px 16px;
}

.sip-page-title {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--app-fg, #111827);
}

.sip-page-head .lua-field {
    min-width: min(360px, 100%);
}

.sip-page-result {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.sip-page-result ul {
    margin: 4px 0 0;
    padding-left: 18px;
}

.ax-lua .lua-dialog.lua-dialog--page {
    width: 100%;
    max-height: none;
    box-shadow: none;
    overflow: visible;
}

.ax-lua .lua-dialog--page .lua-dialog-body {
    overflow: visible;
}

.ax-lua .lua-dialog--page .lua-dialog-foot {
    position: sticky;
    bottom: 0;
    z-index: 2;
    border-radius: 0 0 10px 10px;
    background: var(--app-surface, #fff);
}

.ax-lua .lua-dialog--page .sip--email {
    min-width: 0;
}

.ax-lua .lua-dialog--page .sip-recipients-table {
    max-height: 420px;
}

.sip-sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
}

/* Invite to Schedule's own tab: a header with the Invite / Bookings switch, an opportunity picker card, a paged
   applicant list with a toolbar, the "when did they appear?" prompt, and the Bookings tab. */

.sip-hero {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 10px 24px;
}

.sip-hero__sub {
    margin: 2px 0 0;
    font-size: .8125rem;
    color: var(--app-muted, #6b7280);
}

.sip-view-tabs {
    display: inline-flex;
    padding: 3px;
    gap: 2px;
    border: 1px solid var(--app-border, #e5e7eb);
    border-radius: 10px;
    background: var(--app-surface-soft, #f3f4f6);
}

.sip-view-tab {
    appearance: none;
    border: 0;
    border-radius: 7px;
    padding: 6px 16px;
    background: transparent;
    color: var(--app-muted, #6b7280);
    font: inherit;
    font-size: .8125rem;
    font-weight: 600;
    cursor: pointer;
}

.sip-view-tab:hover {
    color: var(--app-fg, #111827);
}

.sip-view-tab.is-on {
    background: var(--app-surface, #fff);
    color: var(--app-primary, #1d4ed8);
    box-shadow: 0 1px 2px rgba(0, 0, 0, .08);
}

.sip-view-tab:focus-visible {
    outline: 2px solid var(--app-primary, #2563eb);
    outline-offset: 1px;
}

.sip-invite-view {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.ax-lua .lua-dialog--page.sip-panel {
    width: 100%;
}

/* Opportunity picker: a card with a large select, grouped Active / Inactive, and the choice's details below. */

.sip-opp {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 14px 16px;
    border: 1px solid var(--app-border, #e5e7eb);
    border-radius: 10px;
    background: var(--app-surface, #fff);
}

.sip-opp__field {
    display: flex;
    flex-direction: column;
    gap: 6px;
    max-width: 640px;
}

.sip-opp__label {
    font-size: .75rem;
    font-weight: 700;
    letter-spacing: .02em;
    text-transform: uppercase;
    color: var(--app-muted, #6b7280);
}

.sip-opp__select {
    position: relative;
    display: block;
}

.sip-opp__select::after {
    content: "";
    position: absolute;
    right: 14px;
    top: 50%;
    width: 8px;
    height: 8px;
    border-right: 2px solid var(--app-muted, #6b7280);
    border-bottom: 2px solid var(--app-muted, #6b7280);
    transform: translateY(-70%) rotate(45deg);
    pointer-events: none;
}

.sip-opp__select select {
    appearance: none;
    width: 100%;
    box-sizing: border-box;
    padding: 10px 40px 10px 12px;
    border: 1px solid var(--app-border, #d1d5db);
    border-radius: 8px;
    background: var(--app-surface, #fff);
    color: var(--app-fg, #111827);
    font: inherit;
    font-size: .9375rem;
    font-weight: 600;
    cursor: pointer;
}

.sip-opp__select select:hover:not(:disabled) {
    border-color: var(--app-primary-border, #93c5fd);
}

.sip-opp__select select:focus {
    outline: none;
    border-color: var(--app-primary, #2563eb);
    box-shadow: 0 0 0 3px var(--app-primary-soft, #dbeafe);
}

.sip-opp__select select:disabled {
    cursor: progress;
    color: var(--app-muted, #6b7280);
}

.sip-opp__meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
}

.sip-opp__chip {
    display: inline-flex;
    align-items: center;
    padding: 2px 10px;
    border-radius: 999px;
    border: 1px solid var(--app-border, #e5e7eb);
    background: var(--app-surface-soft, #f9fafb);
    color: var(--app-fg, #374151);
    font-size: .75rem;
    font-weight: 600;
}

.sip-opp__chip.is-ok {
    background: var(--app-success-soft, #ecfdf5);
    border-color: var(--app-success-border, #a7f3d0);
    color: var(--app-success, #047857);
}

.sip-opp__chip.is-muted {
    color: var(--app-muted, #6b7280);
}

/* The applicant list: how many will get the invite, a toolbar, the page and its pager. */

.sip-count-chip {
    display: inline-flex;
    align-items: center;
    padding: 2px 10px;
    border-radius: 999px;
    background: var(--app-surface-soft, #f3f4f6);
    color: var(--app-muted, #4b5563);
    font-size: .75rem;
    font-weight: 600;
}

.sip-count-chip.is-on {
    background: var(--app-primary-soft, #eff6ff);
    color: var(--app-primary, #1d4ed8);
}

.sip-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-top: 6px;
}

.sip-toolbar__search {
    flex: 1 1 260px;
    margin-top: 0 !important;
}

/* Invite to Schedule column filters (Batch date, Preference), beside the search. */
.sip-filter {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: var(--bs-secondary-color, #64748b);
}

.sip-filter__input {
    height: 34px;
    padding: 0 8px;
    border: 1px solid var(--bs-border-color, #dbe3ec);
    border-radius: 6px;
    background: var(--bs-body-bg, #fff);
    color: var(--bs-body-color, inherit);
    font-size: 13px;
}

.sip-toolbar__btn {
    white-space: nowrap;
}

.sip-person {
    font-weight: 600;
    color: var(--app-fg, #111827);
}

.sip-pill--info {
    background: var(--app-primary-soft, #eff6ff);
    border-color: var(--app-primary-border, #bfdbfe);
    color: var(--app-primary, #1d4ed8);
}

.sip-empty {
    padding: 22px 16px;
    border: 1px dashed var(--app-border, #d1d5db);
    border-radius: 8px;
    text-align: center;
    color: var(--app-muted, #6b7280);
    font-size: .8125rem;
}

.sip-issues {
    margin: 6px 0 0;
    padding-left: 18px;
}

.sip-recipients-table.is-loading,
.sbk-table.is-loading {
    opacity: .55;
    transition: opacity .15s ease;
}

.ax-lua .lua-dialog--page .sip-recipients-table {
    max-height: 560px;
}

.sip-pager {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.sip-pager__nav {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

/* "When did they appear?" */

.sip-modal-backdrop {
    position: fixed;
    inset: 0;
    z-index: 1060;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    background: rgba(15, 23, 42, .45);
}

.sip-modal {
    width: min(440px, 100%);
    border-radius: 12px;
    background: var(--app-surface, #fff);
    color: var(--app-fg, #111827);
    box-shadow: 0 20px 50px rgba(0, 0, 0, .25);
    overflow: hidden;
}

.sip-modal__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 16px;
    border-bottom: 1px solid var(--app-border, #e5e7eb);
    font-weight: 700;
}

.sip-modal__body {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 16px;
}

.sip-modal__field input {
    font-size: .9375rem;
}

.sip-modal__quick {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 14px;
}

.sip-modal__foot {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    padding: 12px 16px;
    border-top: 1px solid var(--app-border, #e5e7eb);
    background: var(--app-surface-soft, #f9fafb);
}

/* Segmented switch (Me / All managers). */

.sip-seg {
    display: inline-flex;
    padding: 2px;
    border: 1px solid var(--app-border, #d1d5db);
    border-radius: 8px;
    background: var(--app-surface-soft, #f3f4f6);
}

.sip-seg__btn {
    appearance: none;
    border: 0;
    border-radius: 6px;
    padding: 5px 14px;
    background: transparent;
    color: var(--app-muted, #6b7280);
    font: inherit;
    font-size: .8125rem;
    font-weight: 600;
    cursor: pointer;
}

.sip-seg__btn.is-on {
    background: var(--app-surface, #fff);
    color: var(--app-primary, #1d4ed8);
    box-shadow: 0 1px 2px rgba(0, 0, 0, .08);
}

/* Bookings tab. */

.sbk {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.sbk-filters {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px 16px;
}

.sbk-range {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.sbk-range__step {
    min-width: 32px;
    padding-left: 8px !important;
    padding-right: 8px !important;
    font-size: 1rem;
    line-height: 1;
}

.sbk-range__field input {
    padding: 6px 8px;
    border: 1px solid var(--app-border, #d1d5db);
    border-radius: 6px;
    background: var(--app-surface, #fff);
    color: var(--app-fg, #111827);
    font: inherit;
    font-size: .8125rem;
}

.sbk-presets {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 4px 12px;
}

.sbk-search {
    flex: 1 1 220px;
    margin-top: 0 !important;
}

.sbk-summary {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px 10px;
}

.sbk-table {
    max-height: 600px;
}

.sbk-table tr.sbk-day td {
    position: sticky;
    top: 33px;
    background: var(--app-surface-soft, #f3f4f6);
    font-weight: 700;
    color: var(--app-fg, #111827);
}

.sbk-table tr.sbk-day td .sip-muted {
    font-weight: 500;
}

/* Schedules calendar: Outlook-style "+N more" (site.js, .ax-sched-collapse). A laned appointment takes the
   lane the script gave it; a collapsed one waits behind the chip. Clearing the attributes restores DevExpress's layout. */

.ax-sched-collapse .dxbl-sc-vertical-apt[data-ax-laned] {
    left: var(--ax-left) !important;
    width: var(--ax-width) !important;
    right: auto !important;
    margin-left: 0 !important;
    transform: none !important;
}

.ax-sched-collapse .dxbl-sc-vertical-apt[data-ax-collapsed] {
    display: none !important;
}

.ax-sched-more {
    position: absolute;
    z-index: 3;
    height: 20px;
    padding: 0 4px;
    border: 1px solid var(--app-primary-border, #bfdbfe);
    border-radius: 6px;
    background: var(--app-surface, #fff);
    color: var(--app-primary, #1d4ed8);
    font: inherit;
    font-size: .6875rem;
    font-weight: 700;
    line-height: 18px;
    text-align: center;
    white-space: nowrap;
    cursor: pointer;
    box-shadow: 0 1px 2px rgba(0, 0, 0, .12);
}

.ax-sched-more:hover {
    background: var(--app-primary, #2563eb);
    border-color: var(--app-primary, #2563eb);
    color: #fff;
}

.ax-sched-more.is-open {
    color: var(--app-muted, #4b5563);
    border-color: var(--app-border, #d1d5db);
}

.ax-sched-more:focus-visible {
    outline: 2px solid var(--app-primary, #2563eb);
    outline-offset: 1px;
}

/* Invite to Schedule: "Which days can they book?" with Create schedule beside it (page only). */

.sip-days-head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 6px 12px;
}

.sip-days-head__btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
}

/* Invite to Schedule header: Add to Outlook beside the Invite / Bookings switch. */

.sip-hero__actions {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

.sip-outlook-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
}

/* ════════════════════════════════════════════════════════════════════════════════════════════════
   Invite to Schedule tab: redesign. Scoped to the page (.sip-page-shell); the board's pop-up dialog keeps
   its own look. Four numbered step cards (opportunity, who, which days, email) and a sticky send bar.
   ════════════════════════════════════════════════════════════════════════════════════════════════ */

.sip-step-plain {
    display: contents;
}

.ax-lua .sip-page-shell {
    --sip-accent: var(--lua-accent, var(--app-primary, #2563eb));
    --sip-accent-soft: color-mix(in srgb, var(--sip-accent) 9%, transparent);
    --sip-accent-line: color-mix(in srgb, var(--sip-accent) 28%, transparent);
    --sip-line: var(--lua-border, var(--app-border, #e5e7eb));
    --sip-card: var(--lua-surface, var(--app-surface, #fff));
    --sip-soft: var(--lua-soft, var(--app-surface-soft, #f6f7f9));
    --sip-muted-fg: var(--lua-muted, var(--app-muted, #6b7280));
    gap: 16px;
    padding-bottom: 8px;
}

/* Header */

.ax-lua .sip-page-shell .sip-hero {
    align-items: center;
    padding: 18px 20px;
    border: 1px solid var(--sip-line);
    border-radius: 14px;
    background:
        radial-gradient(120% 140% at 0% 0%, var(--sip-accent-soft) 0%, transparent 55%),
        var(--sip-card);
}

.ax-lua .sip-page-shell .sip-hero__text {
    display: flex;
    align-items: center;
    gap: 14px;
}

.ax-lua .sip-page-shell .sip-hero__icon {
    display: inline-grid;
    place-items: center;
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: var(--sip-accent);
    color: #fff;
    box-shadow: 0 6px 16px -6px var(--sip-accent);
}

.ax-lua .sip-page-shell .sip-page-title {
    font-size: 1.375rem;
    letter-spacing: -.01em;
}

.ax-lua .sip-page-shell .sip-hero__sub {
    font-size: .875rem;
}

/* Step cards */

.ax-lua .sip-page-shell .sip-opp,
.ax-lua .sip-page-shell .sip-step {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 18px 20px;
    border: 1px solid var(--sip-line);
    border-radius: 14px;
    background: var(--sip-card);
    box-shadow: 0 1px 2px rgba(16, 24, 40, .04);
}

.ax-lua .sip-page-shell .sip-invite-view > .lua-note,
.ax-lua .sip-page-shell .sip-page-result {
    border-radius: 12px;
}

.ax-lua .sip-page-shell .sip-page > .lua-dialog--page {
    border: 0;
    background: transparent;
}

.ax-lua .sip-page-shell .sip-page > .lua-dialog--page > .lua-dialog-body {
    padding: 0;
}

.ax-lua .sip-page-shell .sip--email {
    gap: 16px;
}

.sip-step__head {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.sip-step__num {
    display: inline-grid;
    place-items: center;
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    border-radius: 999px;
    background: var(--sip-accent-soft, #eff6ff);
    border: 1px solid var(--sip-accent-line, #bfdbfe);
    color: var(--sip-accent, #2563eb);
    font-size: .8125rem;
    font-weight: 700;
}

.sip-step__titles {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.sip-step__title {
    margin: 0;
    font-size: 1rem;
    font-weight: 700;
    color: var(--app-fg, #111827);
}

.sip-step__sub {
    margin: 0;
    font-size: .8125rem;
    color: var(--sip-muted-fg, #6b7280);
}

/* The step titles now say what the old inline labels said. */
.ax-lua .sip-page-shell .sip-opp__label,
.ax-lua .sip-page-shell .sip-heading,
.ax-lua .sip-page-shell .sip-recipients-head > .sip-label,
.ax-lua .sip-page-shell .sip-days-head > .sip-label,
.ax-lua .sip-page-shell .sip-email-head > .sip-label {
    display: none;
}

.ax-lua .sip-page-shell .sip-days-head {
    justify-content: flex-end;
}

/* Who gets the invite */

.ax-lua .sip-page-shell .sip-recipients {
    gap: 10px;
}

.ax-lua .sip-page-shell .sip-recipients-head {
    align-items: center;
    gap: 8px 12px;
}

.ax-lua .sip-page-shell .sip-count-chip {
    padding: 4px 12px;
    font-size: .8125rem;
}

.ax-lua .sip-page-shell .lua-dlg-tabs {
    gap: 6px;
    padding: 4px;
    border: 1px solid var(--sip-line);
    border-radius: 12px;
    background: var(--sip-soft);
    width: fit-content;
    max-width: 100%;
}

.ax-lua .sip-page-shell .lua-dlg-tab {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    padding: 7px 14px;
    border: 0;
    border-radius: 9px;
    font-weight: 600;
}

.ax-lua .sip-page-shell .lua-dlg-tab.is-active {
    background: var(--sip-card);
    color: var(--sip-accent);
    box-shadow: 0 1px 3px rgba(16, 24, 40, .12);
}

.ax-lua .sip-page-shell .sip-toolbar {
    align-items: center;
}

.ax-lua .sip-page-shell .sip-toolbar__search {
    flex: 1 1 320px;
}

.ax-lua .sip-page-shell .sip-recipients-table {
    max-height: 520px;
    border-radius: 12px;
}

.ax-lua .sip-page-shell .sip-recipients-table thead th {
    background: var(--sip-soft);
    font-size: .75rem;
    font-weight: 700;
    letter-spacing: .02em;
    text-transform: uppercase;
    color: var(--sip-muted-fg);
}

.ax-lua .sip-page-shell .sip-recipients-table tbody td {
    padding-top: 10px;
    padding-bottom: 10px;
    vertical-align: middle;
    transition: background-color .12s ease;
}

.ax-lua .sip-page-shell .sip-recipients-table tbody tr:hover td {
    background: color-mix(in srgb, var(--sip-accent) 4%, transparent);
}

/* A ticked row: a quiet tint and an accent edge, not a full colour wash. */
.ax-lua .sip-page-shell .sip-recipients-table tbody tr.is-on td {
    background: color-mix(in srgb, var(--sip-accent) 6%, transparent);
}

.ax-lua .sip-page-shell .sip-recipients-table tbody tr.is-on td:first-child {
    box-shadow: inset 3px 0 0 var(--sip-accent);
}

.ax-lua .sip-page-shell .sip-recipients-table input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: var(--sip-accent);
    cursor: pointer;
}

.sip-who {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.sip-avatar {
    display: none;
}

.ax-lua .sip-page-shell .sip-avatar {
    display: inline-grid;
    place-items: center;
    flex-shrink: 0;
    width: 30px;
    height: 30px;
    border-radius: 999px;
    background: var(--sip-accent-soft);
    color: var(--sip-accent);
    font-size: .6875rem;
    font-weight: 700;
    letter-spacing: .02em;
}

.ax-lua .sip-page-shell .sip-person {
    font-weight: 600;
}

.sip-pill--muted {
    border-color: var(--app-border, #e5e7eb);
    background: var(--app-surface-soft, #f3f4f6);
    color: var(--app-muted, #6b7280);
    font-weight: 500;
}

.ax-lua .sip-page-shell .sip-pill {
    padding: 3px 10px;
    font-size: .72rem;
}

.ax-lua .sip-page-shell .sip-mark {
    padding: 4px 12px;
    transition: background-color .12s ease, color .12s ease;
}

.ax-lua .sip-page-shell .sip-mark:hover:not(:disabled) {
    background: var(--sip-accent);
    color: #fff;
}

/* Which days */

.ax-lua .sip-page-shell .sip-choice {
    align-items: center;
    padding: 12px 14px;
    border: 1px solid var(--sip-line);
    border-radius: 12px;
    background: var(--sip-card);
    transition: border-color .12s ease, background-color .12s ease;
}

.ax-lua .sip-page-shell .sip-choice:hover {
    border-color: var(--sip-accent-line);
}

.ax-lua .sip-page-shell .sip-choice:has(input:checked) {
    border-color: var(--sip-accent);
    background: var(--sip-accent-soft);
}

.ax-lua .sip-page-shell .sip-choice input {
    margin-top: 0;
    width: 16px;
    height: 16px;
}

.ax-lua .sip-page-shell .sip-days {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 8px;
}

.ax-lua .sip-page-shell .sip-day {
    width: 100%;
    padding: 10px 12px;
    border-radius: 12px;
    transition: border-color .12s ease, background-color .12s ease, box-shadow .12s ease;
}

.ax-lua .sip-page-shell .sip-day:hover:not(:disabled) {
    border-color: var(--sip-accent-line);
    box-shadow: 0 2px 8px -4px rgba(16, 24, 40, .2);
}

.ax-lua .sip-page-shell .sip-day.is-on {
    border-color: var(--sip-accent);
    background: var(--sip-accent-soft);
    color: var(--sip-accent);
}

.ax-lua .sip-page-shell .sip-day-date {
    font-weight: 700;
}

/* "No schedule yet" */

.sip-callout {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px 14px;
    padding: 14px 16px;
    border-radius: 12px;
    font-size: .875rem;
}

.sip-callout--warn {
    border: 1px solid #fcd34d;
    background: #fffbeb;
    color: #92400e;
}

.sip-callout__icon {
    display: inline-grid;
    place-items: center;
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: #fef3c7;
    color: #b45309;
}

.sip-callout__text {
    flex: 1 1 280px;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.sip-callout__text strong {
    color: #78350f;
}

.sip-callout .lua-btn {
    flex-shrink: 0;
}

/* Invite email */

.ax-lua .sip-page-shell .sip-email {
    margin-top: 0;
    padding-top: 0;
    border-top: 0;
    gap: 12px;
}

.ax-lua .sip-page-shell .sip-tabs {
    border-bottom: 1px solid var(--sip-line);
}

.ax-lua .sip-page-shell .sip-picker {
    max-width: 440px;
}

.ax-lua .sip-page-shell .sip-subject {
    align-items: center;
    padding: 10px 14px;
    border: 1px solid var(--sip-line);
    border-bottom: 0;
    border-radius: 12px 12px 0 0;
    background: var(--sip-soft);
}

.ax-lua .sip-page-shell .sip-frame {
    height: 560px;
    border-radius: 0 0 12px 12px;
    box-shadow: 0 8px 24px -16px rgba(16, 24, 40, .35);
}

.ax-lua .sip-page-shell .sip-preview-note {
    margin: 0;
    padding: 8px 14px;
    border: 1px solid var(--sip-line);
    border-bottom: 0;
    background: #fffbeb;
    color: #92400e;
}

/* Sticky send bar */

.ax-lua .sip-page-shell .lua-dialog-foot.sip-sendbar {
    position: sticky;
    bottom: 12px;
    z-index: 3;
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 4px;
    padding: 12px 16px;
    border: 1px solid var(--sip-line);
    border-radius: 14px;
    background: color-mix(in srgb, var(--sip-card) 88%, transparent);
    backdrop-filter: blur(8px);
    box-shadow: 0 12px 32px -16px rgba(16, 24, 40, .45);
}

.sip-sendbar__summary {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
    font-size: .875rem;
}

.sip-sendbar__summary > span:last-child {
    display: flex;
    flex-direction: column;
    line-height: 1.25;
}

.sip-sendbar__count {
    display: inline-grid;
    place-items: center;
    min-width: 36px;
    height: 36px;
    padding: 0 8px;
    border-radius: 10px;
    background: var(--sip-accent-soft, #eff6ff);
    color: var(--sip-accent, #2563eb);
    font-size: 1rem;
    font-weight: 700;
}

.ax-lua .sip-page-shell .sip-sendbar .lua-btn-primary {
    padding: 10px 22px;
    border-radius: 10px;
    font-weight: 700;
}

@media (max-width: 720px) {
    .ax-lua .sip-page-shell .sip-hero,
    .ax-lua .sip-page-shell .sip-opp,
    .ax-lua .sip-page-shell .sip-step {
        padding: 14px;
    }

    .ax-lua .sip-page-shell .sip-hero__icon {
        display: none;
    }

    .ax-lua .sip-page-shell .lua-dlg-tabs {
        width: 100%;
        overflow-x: auto;
    }
}

/* Invite to Schedule tab: the opportunity card's schedule actions, and the day options on one line. */

.sip-choices {
    display: contents;
}

.ax-lua .sip-page-shell .sip-choices {
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
    gap: 10px;
}

.ax-lua .sip-page-shell .sip-choices > .sip-choice {
    flex: 1 1 240px;
}

.ax-lua .sip-page-shell .sip-choices > .sip-days-head {
    order: 3;
    align-items: center;
    margin-left: auto;
}

.sip-opp__top {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px 16px;
}

.sip-opp__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.sip-opp__action {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
}

/* The recipients header Send sits at the far right of its row. */

.sip-recipients-head__send {
    margin-left: auto;
}

/* Show it for: ssb-field--grow's flex-basis (220px) is meant for a toolbar row; in the email panel's column it
   became a 220px-tall gap under the picker. Size it to its content, with a small gap before what follows. */

.sip-email > .sip-picker {
    flex: 0 0 auto;
    margin-bottom: 2px;
}
