/* Stable async states for organization/company history dialogs. */
.org-history-dialog {
    position: relative;
}

.org-history-stable-state {
    display: flex;
    min-height: 168px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 24px;
    color: #64748b;
    text-align: center;
}

.org-history-stable-state.is-loading::before,
.company-history-partners-placeholder::before {
    width: 22px;
    height: 22px;
    border: 3px solid #cbd5e1;
    border-top-color: #1769aa;
    border-radius: 50%;
    content: "";
    animation: detail-history-spin 0.8s linear infinite;
}

.org-history-stable-state button,
.org-history-detail-pending button {
    min-width: 44px;
    min-height: 44px;
    padding: 8px 14px;
    border: 1px solid #9fc5df;
    border-radius: 7px;
    background: #ffffff;
    color: #15577f;
    font-weight: 800;
    cursor: pointer;
}

.org-history-detail-pending {
    position: absolute;
    z-index: 3;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 24px;
    border-radius: inherit;
    background: rgba(255, 255, 255, 0.96);
    color: #334155;
    text-align: center;
}

.org-history-detail-pending.is-loading::before {
    width: 28px;
    height: 28px;
    border: 3px solid #cbd5e1;
    border-top-color: #1769aa;
    border-radius: 50%;
    content: "";
    animation: detail-history-spin 0.8s linear infinite;
}

.company-history-partners-placeholder {
    display: flex;
    min-height: 72px;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin: 8px 0 14px;
    border: 1px solid #dbe5ee;
    border-radius: 7px;
    background: #f8fafc;
    color: #64748b;
    font-size: 0.78rem;
}

.oh-consortium-slot {
    display: inline-flex;
    min-width: 28px;
    min-height: 22px;
    align-items: center;
}

@keyframes detail-history-spin {
    to { transform: rotate(360deg); }
}

@media (max-width: 767px) {
    .org-history-stable-state {
        min-height: 200px;
    }

    .org-history-detail-pending {
        padding-right: 18px;
        padding-left: 18px;
    }
}
