/* Product Change Monitor — additive styling only for elements Bootstrap has no component
   for (the change-detail info grid, the "ID also changed" callout). Deliberately does NOT
   touch any Bootstrap class (.btn*, .modal-*, .badge, .alert) — those render exactly as
   Bootstrap ships them. All colors are literal values, not CSS custom properties: this
   page's modal lives outside the .shared-table-page-section wrapper in the DOM (a sibling,
   not a descendant), so anything scoped to that wrapper would silently fail to resolve here. */

/* --- Detail modal: header summary ---------------------------------------- */

.pcm-detail-summary {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.pcm-detail-product {
    font-size: 1.05rem;
    font-weight: 700;
    margin: 0 0 0.2rem;
    word-break: break-word;
}

.pcm-detail-type-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    padding: 0.3rem 0.6rem;
    border-radius: 999px;
    background: #eef0fc;
    color: #4f46e5;
    white-space: nowrap;
}

/* --- Detail modal: old -> new value ------------------------------------- */

.pcm-detail-transition {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    background: #f8f9fb;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 0.75rem 1rem;
    margin-bottom: 0.9rem;
}

.pcm-detail-transition-value {
    flex: 1 1 0;
    min-width: 0;
    font-size: 0.94rem;
    font-weight: 600;
    word-break: break-word;
}

.pcm-detail-transition-old {
    color: #6b7280;
    font-weight: 500;
    text-decoration: line-through;
    text-decoration-color: #d1d5db;
}

.pcm-detail-transition-arrow {
    flex: 0 0 auto;
    color: #9ca3af;
}

/* --- Detail modal: "ID also changed" callout ---------------------------- */

.pcm-detail-id-callout {
    display: flex;
    gap: 0.6rem;
    align-items: flex-start;
    background: #eef6ff;
    border: 1px solid #bfdbfe;
    border-radius: 8px;
    padding: 0.65rem 0.85rem;
    margin-bottom: 0.9rem;
    font-size: 0.88rem;
    color: #1e3a8a;
}

.pcm-detail-id-callout i {
    margin-top: 0.15rem;
}

.pcm-detail-id-callout strong {
    display: block;
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    margin-bottom: 0.1rem;
}

/* --- Detail modal: info grid (actor / timestamp) ------------------------- */

.pcm-detail-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 0.75rem 1.25rem;
}

.pcm-detail-item {
    min-width: 0;
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
}

.pcm-detail-icon {
    flex: 0 0 auto;
    width: 28px;
    height: 28px;
    border-radius: 6px;
    background: #eef0fc;
    color: #4f46e5;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.78rem;
}

.pcm-detail-label {
    display: block;
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #6b7280;
    margin-bottom: 0.15rem;
}

.pcm-detail-value {
    font-size: 0.9rem;
    font-weight: 500;
    word-break: break-word;
}
