/* Dragon ERP POS Design System: visual primitives only, not a page layout. */
:root {
    --dragon-pos-ink: #0f172a;
    --dragon-pos-purple: #0284c7;
    --dragon-pos-purple-dark: #0f172a;
    --dragon-pos-purple-soft: #f8fafc;
    --dragon-pos-border: #cbd5e1;
    --dragon-pos-success: #16813a;
}

.dragon-pos-page {
    min-height: 100vh;
    color: var(--dragon-pos-ink);
    background: var(--dragon-pos-purple-soft);
}

.dragon-pos-topbar {
    color: #fff;
    background: var(--dragon-pos-purple-dark);
    box-shadow: 0 2px 8px rgba(15, 23, 42, .22);
}

.dragon-pos-card {
    color: var(--dragon-pos-ink);
    background: #fff;
    border: 1px solid var(--dragon-pos-border);
    border-radius: .65rem;
    box-shadow: 0 1px 2px rgba(15, 23, 42, .08);
}

.dragon-pos-button {
    border-radius: .55rem;
    font-weight: 700;
}

.dragon-pos-product-card {
    min-height: 112px;
    color: #0f172a;
    background: #fff;
    border: 1px solid var(--dragon-pos-border);
    border-radius: .65rem;
    transition: transform .15s ease, background-color .15s ease, color .15s ease;
}

.dragon-pos-product-card:hover,
.dragon-pos-product-card:focus-visible {
    color: #fff;
    background: var(--dragon-pos-purple);
    transform: translateY(-1px);
}

.dragon-pos-barcode-input {
    border: 2px solid var(--dragon-pos-border);
    border-radius: .55rem;
}

.dragon-pos-dialog .modal-content {
    border: 1px solid var(--dragon-pos-border);
    border-radius: .75rem;
}

@media (max-width: 800px) {
    .dragon-pos-responsive-stack { flex-direction: column; }
}

/* نافذة الإشعارات تبقى داخل حدود الشاشة في RTL وLTR وعلى الشاشات الصغيرة. */
.notification-popover {
    position: fixed !important;
    top: 58px;
    right: 12px;
    left: auto;
    width: min(380px, calc(100vw - 24px));
    max-width: calc(100vw - 24px);
    margin-top: 0 !important;
    z-index: 1050;
}

.chat-mini-popover {
    position: fixed !important;
    top: 58px;
    right: 58px;
    width: min(320px, calc(100vw - 24px));
    max-width: calc(100vw - 24px);
    z-index: 1050;
}

@media (max-width: 480px) {
    .chat-mini-popover { right: 12px; left: 12px; width: auto; max-width: none; }
}

@media (max-width: 480px) {
    .notification-popover {
        right: 12px;
        left: 12px;
        width: auto;
        max-width: none;
    }
}
