/* PharmaMaroc — Application Styles */

[x-cloak] { display: none !important; }

.rtl {
    direction: rtl;
    text-align: right;
}

.rtl .sidebar {
    right: 0;
    left: auto;
}

/* Print Invoice */
@media print {
    body * { visibility: hidden; }
    #invoice-print, #invoice-print * { visibility: visible; }
    #invoice-print { position: absolute; left: 0; top: 0; width: 100%; }
    .no-print { display: none !important; }
}

/* Scrollbar styling */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: #f1f1f1; border-radius: 3px; }
::-webkit-scrollbar-thumb { background: #c1c1c1; border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: #a1a1a1; }

/* POS Cart scroll */
.cart-scroll { max-height: calc(100vh - 350px); overflow-y: auto; }

/* Stock alert badge */
.stock-low { animation: pulse-red 2s infinite; }
@keyframes pulse-red {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.6; }
}

/* RTL overrides for Tailwind */
.rtl .ml-auto { margin-right: auto; margin-left: 0; }
.rtl .mr-auto { margin-left: auto; margin-right: 0; }
.rtl .space-x-reverse > :not([hidden]) ~ :not([hidden]) { --tw-space-x-reverse: 1; }
