/*
|--------------------------------------------------------------------------
| BOOKPN RELEASE UPDATE NOTICE
|--------------------------------------------------------------------------
|
| Used by the kiosk-safe release updater when a newer BookPN build is
| available but the current page contains unsaved work.
|
*/

.bookpn-release-update {
    position: fixed;
    z-index: 50000;
    top: max(
        12px,
        env(safe-area-inset-top, 0px)
    );
    left: 50%;
    width: min(
        560px,
        calc(100vw - 24px)
    );
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 13px 14px;
    border: 1px solid #bfdbfe;
    border-radius: 12px;
    background: #ffffff;
    box-shadow:
        0 18px 48px rgba(15, 23, 42, 0.2);
    opacity: 0;
    pointer-events: none;
    transform: translate(
        -50%,
        -18px
    );
    transition:
        opacity 160ms ease,
        transform 160ms ease;
}

.bookpn-release-update.is-visible {
    opacity: 1;
    pointer-events: auto;
    transform: translate(
        -50%,
        0
    );
}

.bookpn-release-update-copy {
    min-width: 0;
    display: grid;
    gap: 3px;
}

.bookpn-release-update-copy strong {
    color: #0f172a;
    font-size: 13px;
    font-weight: 850;
}

.bookpn-release-update-copy span {
    color: #475569;
    font-size: 11.5px;
    line-height: 1.4;
}

.bookpn-release-update-button {
    flex: 0 0 auto;
    min-height: 38px;
    padding: 0 13px;
    border: 1px solid #2563eb;
    border-radius: 9px;
    background: #2563eb;
    color: #ffffff;
    font: inherit;
    font-size: 12px;
    font-weight: 800;
    cursor: pointer;
}

.bookpn-release-update-button:hover {
    background: #1d4ed8;
    border-color: #1d4ed8;
}

.bookpn-release-update-button:disabled {
    border-color: #cbd5e1;
    background: #e2e8f0;
    color: #64748b;
    cursor: not-allowed;
}

@media (max-width: 560px) {
    .bookpn-release-update {
        align-items: stretch;
        flex-direction: column;
        gap: 10px;
    }

    .bookpn-release-update-button {
        width: 100%;
    }
}

/* BookPN tenant accountant switcher */

.accountant-tenant-switcher {
    position: relative;
}

.accountant-tenant-switcher > summary {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 205px;
    padding: 8px 11px;
    border: 1px solid #dbe4ea;
    border-radius: 9px;
    background: #ffffff;
    cursor: pointer;
    list-style: none;
}

.accountant-tenant-switcher > summary::-webkit-details-marker {
    display: none;
}

.accountant-tenant-switcher-menu {
    position: absolute;
    top: calc(100% + 9px);
    left: 0;
    z-index: 500;
    width: min(340px, 84vw);
    padding: 12px;
    border: 1px solid #dbe4ea;
    border-radius: 12px;
    background: #ffffff;
    box-shadow: 0 18px 45px rgba(15, 23, 42, 0.18);
}

.accountant-back-practice-form {
    margin: 0;
}

.accountant-back-practice {
    display: flex;
    width: 100%;
    align-items: center;
    gap: 8px;
    padding: 9px 8px;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: #0f172a;
    font: inherit;
    font-weight: 700;
    text-align: left;
    cursor: pointer;
}

.accountant-back-practice:hover {
    background: #f1f5f9;
}

.accountant-tenant-switcher-divider {
    height: 1px;
    margin: 7px 0 10px;
    background: #e2e8f0;
}

.accountant-tenant-switcher-menu
.accountant-client-search input {
    width: 100%;
    min-height: 40px;
    padding: 8px 10px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    background: #ffffff;
    font: inherit;
}

.accountant-tenant-switcher-menu
.accountant-client-switcher-options {
    display: grid;
    gap: 4px;
    max-height: 310px;
    margin-top: 8px;
    overflow-y: auto;
}

.accountant-tenant-switcher-menu
.accountant-client-switcher-options form {
    margin: 0;
}

.accountant-tenant-switcher-menu
.accountant-client-option {
    display: flex;
    width: 100%;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 9px;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: #0f172a;
    font: inherit;
    text-align: left;
    cursor: pointer;
}

.accountant-tenant-switcher-menu
.accountant-client-option:hover:not(:disabled) {
    background: #f1f5f9;
}

.accountant-tenant-switcher-menu
.accountant-client-option.is-current {
    color: #047857;
    font-weight: 700;
    cursor: default;
}

.accountant-tenant-switcher-menu
.accountant-client-option small {
    color: #64748b;
    font-size: 11px;
    white-space: nowrap;
}

.accountant-tenant-switcher-menu
.accountant-client-search-empty {
    padding: 12px 4px 3px;
    color: #64748b;
    font-size: 13px;
}

.accountant-switcher-eyebrow {
    color: #64748b;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
}

.accountant-switcher-chevron {
    margin-left: auto;
    color: #64748b;
}

@media (max-width: 760px) {
    .accountant-tenant-switcher > summary {
        min-width: 0;
        max-width: 52vw;
    }

    .accountant-tenant-switcher > summary strong {
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
}
