/* "Install dInventory" card for phones (2026-10-14) - see wwwroot/js/pwa-install.js. */
.dinv-pwa {
    position: fixed;
    left: 12px;
    right: 12px;
    bottom: calc(12px + env(safe-area-inset-bottom, 0px));
    z-index: 1040; /* above the sticky topbar, below Bootstrap modals (1050+) */
    max-width: 440px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px 12px;
    padding: 12px 14px;
    background: #fff;
    border: 1px solid var(--erp-border, #e1e4e8);
    border-radius: 12px;
    box-shadow: 0 8px 28px rgba(15, 23, 32, 0.18);
    font-size: 0.875rem;
    line-height: 1.35;
    color: #1d2939;
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.dinv-pwa.show {
    opacity: 1;
    transform: none;
}

.dinv-pwa-icon {
    width: 44px;
    height: 44px;
    flex: 0 0 44px;
    border-radius: 10px;
    border: 1px solid var(--erp-border, #e1e4e8);
}

.dinv-pwa-text {
    flex: 1 1 0;
    min-width: 0;
}

.dinv-pwa-text strong {
    display: block;
    font-size: 0.92rem;
}

.dinv-pwa-text span {
    color: var(--erp-text-muted, #667085);
}

.dinv-pwa-text .bi {
    color: var(--erp-primary, #1f4e79);
}

.dinv-pwa-actions {
    flex: 1 0 100%;
    display: flex;
    justify-content: flex-end;
    gap: 8px;
}

.dinv-pwa-actions .btn {
    min-width: 88px;
}

/* PC / tablet: a compact card in the bottom-right corner instead of full width. */
@media (min-width: 768px) {
    .dinv-pwa {
        left: auto;
        right: 20px;
        bottom: 20px;
        width: 380px;
        margin: 0;
    }
}

@media print {
    .dinv-pwa { display: none !important; }
}
