/* styles/style.css */
body {
    font-family: 'Inter', sans-serif;
       background-color: #18181b !important;
}
#loginModal {
  z-index: 2147483647 !important;
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  width: 100vw !important;
  height: 100dvh !important;
}

    .shaking-bell {
    display: inline-block;
    animation: bell-shake 1s infinite;
    transform-origin: 50% 0%;
    }

    @keyframes bell-shake {
    0%   { transform: rotate(0deg);}
    10%  { transform: rotate(-18deg);}
    20%  { transform: rotate(14deg);}
    30%  { transform: rotate(-10deg);}
    40%  { transform: rotate(8deg);}
    50%  { transform: rotate(-6deg);}
    60%  { transform: rotate(4deg);}
    70%  { transform: rotate(-2deg);}
    80%  { transform: rotate(1deg);}
    100% { transform: rotate(0deg);}
    }

/* Sale Notification Bar */
/* ---------- base ---------- */
#saleNotificationBar {
  position: fixed;
  z-index: 9999;
  box-sizing: border-box;

  /* mobile: top banner */
  top: 0.75rem;
  left: 0.75rem;
  right: 0.75rem;
  width: auto;

  display: flex;
  align-items: flex-start;
  gap: 0.75rem;

  padding: 0.9rem 1rem 1rem;

  border-radius: 16px;
  background: rgba(17, 24, 39, 0.92);
  color: #f9fafb;

  box-shadow:
    0 10px 30px -10px rgba(0, 0, 0, 0.45),
    0 2px 6px rgba(0, 0, 0, 0.25);

  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);

  border: 1px solid rgba(255, 255, 255, 0.08);
  overflow: hidden;

  /* hidden state: slide down from top on mobile */
  transform: translateY(-140%);
  opacity: 0;
  pointer-events: none;
  transition:
    transform 0.45s cubic-bezier(.22,1,.36,1),
    opacity 0.35s ease;
}

#saleNotificationBar.show {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

/* ---------- accent bar on the left ---------- */
#saleNotificationBar::after {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: linear-gradient(180deg, #10b981, #34d399, #3b82f6);
  border-radius: 16px 0 0 16px;
}

/* ---------- pulse dot ---------- */
.notif-pulse {
  position: absolute;
  top: 0.85rem;
  left: 0.85rem;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
  animation: notifPulse 1.8s infinite;
  z-index: 2;
}
@keyframes notifPulse {
  0%   { box-shadow: 0 0 0 0 rgba(16,185,129,0.55); }
  70%  { box-shadow: 0 0 0 10px rgba(16,185,129,0); }
  100% { box-shadow: 0 0 0 0 rgba(16,185,129,0); }
}

/* ---------- avatar ---------- */
.notif-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  margin-left: 0.5rem;      /* make room for the pulse dot */
  background: #374151;
  border: 1.5px solid rgba(16, 185, 129, 0.5);
}

/* ---------- body ---------- */
.notif-body {
  flex: 1;
  min-width: 0;              /* critical for truncation on flex */
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.notif-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.5rem;
}

.notif-name {
  font-weight: 600;
  font-size: 0.95rem;
  color: #ffffff;
  letter-spacing: 0.01em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
}

.notif-date {
  font-size: 0.72rem;
  color: #9ca3af;
  letter-spacing: 0.02em;
}

.notif-product {
  margin: 0.15rem 0 0;
  font-size: 0.85rem;
  line-height: 1.35;
  color: #d1d5db;
  word-break: break-word;
  overflow-wrap: anywhere;
}

/* ---------- close button ---------- */
.notif-close {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  padding: 0;
  border: none;
  border-radius: 8px;
  background: transparent;
  color: #9ca3af;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, transform 0.15s;
}
.notif-close svg { width: 16px; height: 16px; }
.notif-close:hover,
.notif-close:focus-visible {
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  outline: none;
}
.notif-close:active { transform: scale(0.92); }

/* ---------- auto-dismiss progress bar ---------- */
.notif-progress {
  position: absolute;
  left: 0;
  bottom: 0;
  height: 2px;
  width: 100%;
  background: linear-gradient(90deg, #10b981, #3b82f6);
  transform-origin: left center;
  transform: scaleX(0);
}
#saleNotificationBar.show .notif-progress {
  animation: notifProgress 5s linear forwards;
}
@keyframes notifProgress {
  from { transform: scaleX(1); }
  to   { transform: scaleX(0); }
}

/* ---------- desktop: right-side card ---------- */
@media (min-width: 640px) {
  #saleNotificationBar {
    top: 1rem;
    left: auto;
    right: 1rem;
    width: 380px;
    max-width: 92vw;
    padding: 1rem 1.1rem 1.1rem;
    border-radius: 14px;

    /* hidden state: slide in from right on desktop */
    transform: translateX(120%);
  }
  #saleNotificationBar.show {
    transform: translateX(0);
  }
  #saleNotificationBar::after {
    border-radius: 14px 0 0 14px;
  }
}

/* Security Questions Modal - Responsive Styles */
.securityQuestions-model {
    position: fixed;
    padding: 1rem;
    overflow-y: auto;
    transition: all 0.3s ease;
       position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6); /* translucent */
    backdrop-filter: blur(12px);
    z-index: 20000000000000;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Modal Content Container */
.securityQuestions-model-content {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    border-radius: 1.5rem;
    padding: 1.5rem;
    max-width: 32rem;
    width: 100%;
    margin: auto;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
    animation: modalSlideIn 0.3s ease-out;
}

/* Slide In Animation */
@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: scale(0.95) translateY(-20px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

/* Responsive Breakpoints */

/* Large Screens (Desktops, 1200px and above) */
@media screen and (min-width: 1200px) {
    .securityQuestions-model-content {
        max-width: 600px;
        padding: 2rem;
    }
    
    .securityQuestions-model-content h3 {
        font-size: 1.75rem;
    }
    
    .securityQuestions-model-content select,
    .securityQuestions-model-content input {
        padding: 0.75rem;
        font-size: 1rem;
    }
}

/* Medium Screens (Tablets, 768px to 1199px) */
@media screen and (min-width: 768px) and (max-width: 1199px) {
    .securityQuestions-model-content {
        max-width: 550px;
        padding: 1.75rem;
        margin: 1rem;
    }
    
    .securityQuestions-model-content h3 {
        font-size: 1.5rem;
    }
}

/* Small Screens (Large Phones, 480px to 767px) */
@media screen and (min-width: 480px) and (max-width: 767px) {
    .securityQuestions-model {
        padding: 0.75rem;
    }
    
    .securityQuestions-model-content {
        max-width: 95%;
        padding: 1.25rem;
        border-radius: 1rem;
    }
    
    .securityQuestions-model-content h3 {
        font-size: 1.25rem;
    }
    
    .securityQuestions-model-content p {
        font-size: 0.7rem;
    }
    
    .securityQuestions-model-content select,
    .securityQuestions-model-content input {
        padding: 0.6rem;
        font-size: 0.9rem;
    }
    
    .securityQuestions-model-content button {
        padding: 0.5rem 1rem;
        font-size: 0.875rem;
    }
}

/* Extra Small Screens (Phones below 480px) */
@media screen and (max-width: 479px) {
    .securityQuestions-model {
        padding: 0.5rem;
        align-items: flex-start;
        padding-top: 2rem;
    }
    
    .securityQuestions-model-content {
        max-width: 100%;
        padding: 1rem;
        border-radius: 0.75rem;
    }
    
    .securityQuestions-model-content h3 {
        font-size: 1.1rem;
    }
    
    .securityQuestions-model-content p {
        font-size: 0.65rem;
    }
    
    /* Stack buttons vertically on very small screens */
    .securityQuestions-model-content .flex.gap-3 {
        flex-direction: column-reverse;
        gap: 0.75rem;
    }
    
    .securityQuestions-model-content .flex.gap-3 button {
        width: 100%;
        justify-content: center;
    }
    
    .securityQuestions-model-content select,
    .securityQuestions-model-content input {
        padding: 0.5rem;
        font-size: 0.85rem;
    }
    
    .securityQuestions-model-content .space-y-6 {
        gap: 1rem;
    }
    
    /* Make header more compact */
    .securityQuestions-model-content .flex.items-center.justify-between {
        margin-bottom: 1rem;
        padding-bottom: 0.75rem;
    }
    
    /* Adjust close button size */
    .securityQuestions-model-content svg {
        width: 1.25rem;
        height: 1.25rem;
    }
}

/* Landscape Mode for Mobile */
@media screen and (max-height: 500px) and (orientation: landscape) {
    .securityQuestions-model {
        align-items: flex-start;
        padding-top: 1rem;
        padding-bottom: 1rem;
    }
    
    .securityQuestions-model-content {
        max-width: 80%;
        max-height: 90vh;
        overflow-y: auto;
        padding: 1rem;
    }
    
    .securityQuestions-model-content .space-y-6 {
        gap: 0.75rem;
    }
    
    .securityQuestions-model-content .mt-8 {
        margin-top: 1rem;
    }
    
    .securityQuestions-model-content h3 {
        font-size: 1rem;
    }
}

/* Touch-friendly adjustments for mobile */
@media (hover: none) and (pointer: coarse) {
    .securityQuestions-model-content select,
    .securityQuestions-model-content input,
    .securityQuestions-model-content button {
        min-height: 44px; /* Better touch target size */
    }
    
    .securityQuestions-model-content button {
        padding: 0.75rem 1rem;
    }
}

/* Optional: Dark mode support (if needed) */
@media (prefers-color-scheme: dark) {
    .securityQuestions-model {
        background-color: rgba(0, 0, 0, 0.95);
    }
}

/* Optional: Reduce motion for accessibility */
@media (prefers-reduced-motion: reduce) {
    .securityQuestions-model-content {
        animation: none;
    }
}

/* Fix for notch devices (iPhone etc.) */
@supports (padding: max(0px)) {
    .securityQuestions-model {
        padding-left: max(1rem, env(safe-area-inset-left));
        padding-right: max(1rem, env(safe-area-inset-right));
        padding-top: max(1rem, env(safe-area-inset-top));
        padding-bottom: max(1rem, env(safe-area-inset-bottom));
    }
}

/* Alternative: Mobile-first approach (simpler version) */
/* Use this if you prefer mobile-first design */

.mobile-first-security-modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 16px;
}

.mobile-first-security-modal .modal-content {
    background: linear-gradient(135deg, #1a1a2e, #16213e);
    border-radius: 20px;
    padding: 20px;
    width: 100%;
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
}

/* Responsive text and spacing */
.mobile-first-security-modal h3 {
    font-size: clamp(1.1rem, 5vw, 1.75rem);
}

.mobile-first-security-modal p {
    font-size: clamp(0.65rem, 3vw, 0.875rem);
}

.mobile-first-security-modal select,
.mobile-first-security-modal input {
    padding: clamp(8px, 2vw, 12px);
    font-size: clamp(0.85rem, 3.5vw, 1rem);
}

.mobile-first-security-modal button {
    padding: clamp(8px, 2vw, 12px) clamp(16px, 4vw, 24px);
    font-size: clamp(0.875rem, 3vw, 1rem);
}

/* Responsive button layout */
@media (max-width: 480px) {
    .mobile-first-security-modal .button-group {
        flex-direction: column;
        gap: 8px;
    }
    
    .mobile-first-security-modal .button-group button {
        width: 100%;
    }
}
.modal-content {
       background-color: #18181b !important;
    padding: 2rem;
    border-radius: 0.75rem; /* rounded-lg */
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05); /* shadow-xl */
    max-width: 90%;
    max-height: 90%;
    overflow-y: auto;
    position: relative;
       animation: modalSlideIn 0.3s ease-out;
       border: 1px solid rgb(255, 255, 255);
}
.receipt-content {
       background-color: #ffffff !important;
    padding: 2rem;
    color: #020617 !important;
    border-radius: 0.75rem; /* rounded-lg */
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05); /* shadow-xl */
    max-width: 90%;
    max-height: 90%;
    overflow-y: auto;
    position: relative;
       animation: modalSlideIn 0.3s ease-out;
       border: 1px solid rgb(255, 255, 255);
}
.dmodal-content {
       background-color: #18181b !important;
    padding: 2rem;
    border-radius: 0.75rem; /* rounded-lg */
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05); /* shadow-xl */
    width: 75%;
    max-height: 90%;
    overflow-y: auto;
    position: relative;
       animation: modalSlideIn 0.3s ease-out;
       border: 1px solid rgb(255, 254, 254);
}
.modal-close-btn {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #4b5563; /* gray-600 */
}
/* Full-screen overlay for home options */

/* Autocomplete suggestions styling */
.autocomplete-suggestions {
    position: absolute;
    background-color: white;
    border: 1px solid #e5e7eb; /* gray-200 */
    border-radius: 0.375rem; /* rounded-md */
    max-height: 200px;
    overflow-y: auto;
    z-index: 10;
    width: 100%; /* Match input width */
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}
.autocomplete-suggestion-item {
    padding: 0.5rem 0.75rem;
    cursor: pointer;
    font-size: 0.875rem; /* sm:text-sm */
    color: #374151; /* gray-700 */
}
.autocomplete-suggestion-item:hover {
    background-color: #f3f4f6; /* gray-100 */
}

/* Low Stock Highlighting */
.low-stock {
    background-color: #540b0b; /* Red-100 for background */
    border-left: 6px solid #f70000; /* Red-500 for left border */
    color: #ffffff; /* Black text for contrast */
}

.notificationjoy {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    height: 1.95rem;
    width: 1.95rem;
    background-color: #ef4444; /* Red-500 */
    border-radius: 50%;
    display: inline-block;
    box-shadow: 0 0 0 2px rgb(0, 37, 220); /* White ring around the dot */
}
svg.h-8.w-8 > path {
      stroke: white;
    }

    button.modal-close-btn {
      font-size: 30px;
      color: #ffffff; /* Example: Increase font size to 30px */
       animation: pulse 2s infinite ease-in-out; 
    }

    @keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05); /* Slightly increase size at 50% of the animation */
    }
    100% {
        transform: scale(1); /* Return to original size at the end */
    }
    }
/* Chart Canvas Styling */
.chart-canvas {
    display: block;
    background-color: #000000;
    border-radius: 0.5rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    margin-top: 1rem;
    width: 100%; /* Ensure canvas is responsive */
    max-width: 100%;
    height: 400px; /* Fixed height, or adjust as needed */
}
/* Dashboard button specific enhancements */
.dashboard-btn {
    position: relative;
    background-size: 200% auto;
    transition: all 0.4s ease;
    min-width: 280px; /* prevents too narrow on small screens */
}

.dashboard-btn:hover {
    background-position: right center;
    box-shadow: 0 15px 25px -10px rgba(139, 92, 246, 0.5);
}

.dashboard-btn .bg-white\/20 {
    backdrop-filter: blur(2px);
}

.dashboard-btn svg {
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.1));
    transition: filter 0.3s ease;
}

.dashboard-btn:hover svg {
    filter: drop-shadow(0 0 6px rgba(255,255,255,0.6));
}

/* Ensure the two bottom buttons have equal width */
.grid.md\:grid-cols-2 > button {
    width: 100%;
}
body.night-mode {
    background-color: #18181b !important;
    color: #e5e7eb !important;
}
body.night-mode .bg-white { background-color: #23232a !important; }
body.night-mode .bg-white-800  { background-color: #23232a !important; }
body.night-mode .bg-black-1000 { background-color: #ffffff !important; }
body.night-mode .text-gray-800 { color: #e5e7eb !important; }
body.night-mode .text-gray-802 { color: #e5e7eb !important; }
body.night-mode .text-gray-600 { color: #d1d5db !important; }
body.night-mode .text-gray-500 { color: #ffffff !important; }
body.night-mode .text-blue-700 { color: #ffffff !important; }
body.night-mode .text-gray-700 { color: #ffffff !important; }
body.night-mode .text-base { color: #000000 !important; }
body.night-mode .settingsBtn { color: #ffffff !important; }
body.night-mode .text-gray-700, .autocomplete-suggestion-item { color: #d1d5db !important; }
body.night-mode .bg-gray-50 { background-color: #23232a !important; }
body.night-mode  .bg-white-30, .bg-blue-600 { color: #e5e7eb !important; }
body.night-mode .text-white-805 { color: #000000 !important; }
body.night-mode input,
body.night-mode textarea,
body.night-mode select {
    background-color: #ffffff !important;
    color: #000000 !important;
    border-color: #ff0000;
}
        .bg-white { background-color: #23232a !important; }
        .bg-white-800 { background-color: #23232a !important; }
        .bg-gray-50 { background-color: #23232a !important; }
        .text-gray-800, .text-gray-802 { color: #e5e7eb !important; }
        .text-gray-600 { color: #d1d5db !important; }
        .text-gray-500, .text-blue-700, .text-gray-700, .settingsBtn { color: #ffffff !important; }
        .text-base { color: #000000 !important; }  /* keep as is if needed, but adjust later */
        .autocomplete-suggestion-item { color: #d1d5db !important; }
body.night-mode .modal-content { background-color: #23232a !important; color: #e5e7eb !important; }
body.night-mode .dmodal-content { background-color: #23232a !important; color: #e5e7eb !important; }
/* --- Mini Calculator Responsive & Dark Mode Styles --- */
#miniCalculator {
    transition: box-shadow 0.2s, background 0.2s;
    min-width: 220px;
    max-width: 90vw;
    box-sizing: border-box;
}
.autocomplete-suggestion-item {
    /* Existing styles for the suggestion item */
    padding: 8px 12px;
    cursor: pointer;
    transition: background-color 0.3s ease, color 0.3s ease; /* Add this line */
    /* You might also have other styles like border, etc. */
}

.autocomplete-suggestion-item:hover {
 background-image: linear-gradient(to right, #ee00ff, #0056b3);
    color: white; /* Consider changing text color for readability */
}
.creditSalesSection :hover {
    background-color: #fb0000; /* gray-100 */
    color: #000000; /* gray-900 */
}
#miniCalculator .calc-btn {
    background: #f3f4f6;
    color: #374151;
    border: none;
    border-radius: 0.375rem;
    padding: 0.5rem 0;
    font-size: 1rem;
    font-family: inherit;
    transition: background 0.2s, color 0.2s;
    outline: none;
}
#miniCalculator .calc-btn:focus,
#miniCalculator .calc-btn:hover {
    background: #bbf7d0; /* green-100 */
    color: #166534;       /* green-800 */
}
#miniCalculator .calc-btn.bg-green-500,
#miniCalculator .calc-btn.bg-blue-500 {
    background: #22c55e; /* green-500 */
    color: #fff;
}
#miniCalculator .calc-btn.bg-green-500:hover,
#miniCalculator .calc-btn.bg-green-500:focus {
    background: #16a34a; /* green-600 */
}
#miniCalculator .calc-btn.bg-blue-500:hover,
#miniCalculator .calc-btn.bg-blue-500:focus {
    background: #2563eb; /* blue-600 */
}
#miniCalculator input[type="text"] {
    background: #f9fafb;
    color: #111827;
    border: 1px solid #e5e7eb;
}
@media (max-width: 500px) {
    #miniCalculator {
        left: 0 !important;
        right: 0 !important;
        width: 98vw !important;
        min-width: 0;
        max-width: 98vw;
        top: 100% !important;
        margin-top: 8px;
        z-index: 9999;
    }
    #miniCalculator .flex {
        flex-direction: column;
    }
    #miniCalculator .grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* --- Night Mode for Mini Calculator --- */
body.night-mode #miniCalculator {
    background: #23232a !important;
    border-color: #444;
    color: #e5e7eb;
}
body.night-mode #miniCalculator .calc-btn {
    background: #23232a;
    color: #e5e7eb;
}
body.night-mode #miniCalculator .calc-btn:focus,
body.night-mode #miniCalculator .calc-btn:hover {
    background: #bbf7d0; /* green-100 */
}

.chat-btn-new-message {
    border: 4px solid #f87171 !important; /* Initial Tailwind red-400 */
    box-shadow: 0 0 0 4px #fca5a555, 0 0 10px 2px #f8717188;
    transition: border 0.2s, box-shadow 0.2s;
    animation: chatBtnBorderPulse 2s linear infinite, chatBtnGlowPulse 1.2s ease-in-out infinite alternate;
    position: relative;
    z-index: 1;
}
@keyframes chatBtnBorderPulse {
    0% {
        border-color: #f87171; /* red-400 */
        box-shadow: 0 0 0 4px #fca5a555, 0 0 10px 2px #f8717188;
    }
    25% {
        border-color: #fbbf24; /* yellow-400 */
        box-shadow: 0 0 0 4px #fde68a55, 0 0 14px 4px #fbbf2488;
    }
    50% {
        border-color: #34d399; /* green-400 */
        box-shadow: 0 0 0 4px #6ee7b755, 0 0 18px 6px #34d39988;
    }
    75% {
        border-color: #60a5fa; /* blue-400 */
        box-shadow: 0 0 0 4px #93c5fd55, 0 0 14px 4px #60a5fa88;
    }
    100% {
        border-color: #f87171; /* red-400 */
        box-shadow: 0 0 0 4px #fca5a555, 0 0 10px 2px #f8717188;
    }
}
@keyframes chatBtnGlowPulse {
    0% {
        box-shadow: 0 0 0 4px #fca5a555, 0 0 10px 2px #f8717188;
    }
    100% {
        box-shadow: 0 0 0 8px #fca5a522, 0 0 24px 8px #f87171cc;
    }
}

.modal-overlay {
    position: fixed;
    inset: 0;
  background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(40px) saturate(180%);
    -webkit-backdrop-filter: blur(40px) saturate(180%);
    z-index: 20000000000000;
    display: flex;
    align-items: center;
    justify-content: center;
}
@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: scale(0.95) translateY(20px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

/* Ensure the table rows look clickable */
#salesHistoryBody tr, #restockHistoryBody tr {
    cursor: pointer;
}
.itemmodal-overlay {
position: fixed;
top: 0px;
left: auto; /* Adjusted to allow right alignment */
right: 0px;
bottom: 0px;
display: flex;
justify-content: center; /* Content inside the modal is horizontally centered */
align-items: center; /* Content inside the modal is vertically centered */
visibility: visible;
opacity: 1;
z-index: 1000;
max-width: 800px; /* Limits the maximum width of the modal */
margin-left: auto; /* Pushes the modal to the right when combined with right:0 and max-width */
}
/* ===================================
   REFUND HISTORY – ADAPTIVE MODAL
=================================== */

.refund-adaptive {
    display: flex;
    transition: opacity 0.3s ease;
}

/* Modal panel */
.refund-adaptive .dmodal-content {
    background: white;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

/* ===============================
   MOBILE + TABLET → SLIDE UP
================================ */
@media (max-width: 1023px) {
    .refund-adaptive {
        align-items: flex-end;
        justify-content: center;
        padding-top: auto;
    }

    .refund-adaptive .dmodal-content {
        border-radius: 20px 20px 0 0;
        transform: translateY(100%);
        max-width: 100%;
    }

    .refund-adaptive.show .dmodal-content {
        transform: translateY(0);
    }
}

/* ===============================
   DESKTOP → CENTER MODAL
================================ */
@media (min-width: 1024px) {
    .refund-adaptive {
        align-items: center;
        justify-content: center;
    }

    .refund-adaptive .dmodal-content {
        width: 90%;
        max-width: 1100px;
        border-radius: 20px;
        transform: scale(0.95);
        opacity: 0;
    }

    .refund-adaptive.show .dmodal-content {
        transform: scale(1);
        opacity: 1;
    }
}


        .modal-overlay.drawer-modal{
            width: 100%;
       max-width: 800px;
            transform: translateX(100%);
            border-radius: 20px 0 0 20px;
            animation: slideInRight 0.3s cubic-bezier(0.4, 0.0, 0.2, 1) forwards;
            padding-top: 3rem;
        }

        @media (max-width: 640px) {
            .modal-overlay.drawer-modal .modal-content {
                max-width: 100%;
                border-radius: 20px 0 0 0;
            }
        }

        @keyframes slideInRight {
            from {
                transform: translateX(100%);
            }
            to {
                transform: translateX(0);
            }
        }


.login-Modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    backdrop-filter: blur(30px) saturate(180%);
    -webkit-backdrop-filter: blur(30px) saturate(180%);
    z-index: 999999;

    display: flex;
    align-items: center;
    justify-content: center;

    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}
.login-Modal .modal-content {
    transform: translateY(40px);
    opacity: 0;
    transition:
        transform 0.35s ease,
        opacity 0.25s ease;
}
.login-Modal:not(.hidden) {
    opacity: 1;
    pointer-events: auto;
}

.login-Modal:not(.hidden) .modal-content {
    transform: translateY(0);
    opacity: 1;
}
@media (max-width: 768px) {
    .login-Modal {
        align-items: flex-end;
    }

    .login-Modal .modal-content {
        width: 100%;
        border-radius: 18px 18px 0 0;
        transform: translateY(100%);
    }

    .login-Modal:not(.hidden) .modal-content {
        transform: translateY(0);
    }
}
/* For tablets - make it larger but not full screen */
@media screen and (min-width: 768px) and (max-width: 1024px) {
    .login-Modal .modal-content {
        width: 85%;
        max-width: 600px;
        min-width: 400px;
    }
}

/* For very large tablets (iPad Pro) */
@media screen and (min-width: 1024px) and (max-width: 1366px) {
    .login-Modal .modal-content {
        width: 70%;
        max-width: 650px;
        min-width: 450px;
    }
}
.backup-btn {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px 24px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    overflow: hidden;
    min-width: 220px;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
    user-select: none;
}

.backup-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.6);
    background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
}

.backup-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 10px rgba(102, 126, 234, 0.3);
}

.backup-btn .btn-text {
    transition: opacity 0.3s ease;
}

.backup-btn .btn-loader {
    position: absolute;
    display: none;
    align-items: center;
    justify-content: center;
    gap: 6px;
    width: 100%;
    height: 100%;
    background: inherit;
    border-radius: inherit;
}

.backup-btn.loading .btn-text {
    opacity: 0;
}

.backup-btn.loading .btn-loader {
    display: flex;
}

.backup-btn.loading {
    cursor: wait;
    pointer-events: none;
}

.loader-dot {
    width: 8px;
    height: 8px;
    background: white;
    border-radius: 50%;
    animation: pulse 1.5s infinite ease-in-out;
}

.loader-dot:nth-child(2) {
    animation-delay: 0.2s;
}

.loader-dot:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(0.8);
        opacity: 0.5;
    }
    50% {
        transform: scale(1.2);
        opacity: 1;
    }
}

/* Success/Error states */
.backup-btn.success {
    background: linear-gradient(135deg, #4CAF50 0%, #2E7D32 100%);
    animation: success-pulse 0.5s ease;
}

.backup-btn.error {
    background: linear-gradient(135deg, #f44336 0%, #c62828 100%);
    animation: shake 0.5s ease;
}

@keyframes success-pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    10%, 30%, 50%, 70%, 90% { transform: translateX(-2px); }
    20%, 40%, 60%, 80% { transform: translateX(2px); }
}

/* Tooltip */
.backup-btn::after {
    content: "Create backup on USB drive";
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    padding: 6px 12px;
    background: #333;
    color: white;
    font-size: 12px;
    border-radius: 6px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease, transform 0.3s ease;
    z-index: 1000;
}

.backup-btn:hover::after {
    opacity: 1;
    transform: translateX(-50%) translateY(-5px);
}

/* Responsive */
@media (max-width: 768px) {
    .backup-btn {
        padding: 10px 20px;
        min-width: 200px;
        font-size: 14px;
    }
    
    .backup-btn::after {
        font-size: 11px;
        padding: 5px 10px;
    }
}

.onboarding-Tour{
    position: fixed;
    inset: 0;
    z-index: 999999; /* Use a valid z-index value */
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}
.onboarding-Tour:not(.hidden) {
    display: flex;
    pointer-events: none; /* Let clicks pass through to page except tooltip */
}

/* Remove pointer-events: none from the overlay so clicks can pass through to buttons */
/* But make the highlight area block clicks to the underlying elements */
#tourHighlight {
    position: absolute;
    border: 3px solid #3b82f6;
    border-radius: 12px;
    pointer-events: none;
    transition: all 0.3s ease;
    box-shadow: 0 0 0 9999px rgba(0, 0, 0, 0.7);
    z-index: 999999;
}

/* Tooltip needs to be clickable */
#tourTooltip {
    position: absolute;
    pointer-events: auto;
    z-index: 1000000;
    background: white;
    border-radius: 16px;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    min-width: 280px;
    max-width: 400px;
    padding: 20px;
}

/* Dark mode support */
.dark #tourTooltip {
    background: #1f2937;
    color: white;
}

/* Make buttons within tooltip clickable */
#tourTooltip button {
    pointer-events: auto;
    cursor: pointer;
    position: relative;
    z-index: 1000001;
}

/* Ensure the overlay doesn't block clicks to the tooltip */

/* But the tooltip itself should catch clicks */
#tourTooltip {
    pointer-events: auto;
}

/* Progress dots styling */
#tourProgress {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin: 20px 0;
}

.tour-progress-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: #d1d5db;
    transition: all 0.3s ease;
}

.tour-progress-dot.active {
    background-color: #3b82f6;
    transform: scale(1.25);
}

/* Animation for tooltip */
@keyframes tourFadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

#tourTooltip {
    animation: tourFadeIn 0.3s ease-out;
}

/* ===================================
   RESPONSIVE BREAKPOINTS FOR TOUR
=================================== */

/* Extra Small Screens (Phones below 480px) */
@media (max-width: 479px) {
    #tourTooltip {
        min-width: 90vw;
        max-width: 90vw;
        padding: 16px;
        font-size: 14px;
    }
    
    #tourTooltip h3 {
        font-size: 16px;
        margin-bottom: 10px;
    }
    
    #tourTooltip p {
        font-size: 14px;
        margin-bottom: 15px;
    }
    
    #tourTooltip button {
        padding: 8px 16px;
        font-size: 13px;
    }
    
    #tourProgress {
        gap: 6px;
        margin: 15px 0;
    }
    
    .tour-progress-dot {
        width: 6px;
        height: 6px;
    }
    
    #tourHighlight {
        border: 2px solid #3b82f6;
        border-radius: 8px;
    }
}
@media (max-width: 768px) {
    aside#sidebar-main {
        width: 280px;
    }
}
/* Small to Medium Phones (480px - 767px) */
@media (min-width: 480px) and (max-width: 767px) {
    #tourTooltip {
        min-width: 85vw;
        max-width: 85vw;
        padding: 18px;
        font-size: 15px;
    }
    
    #tourTooltip h3 {
        font-size: 17px;
        margin-bottom: 12px;
    }
    
    #tourTooltip p {
        font-size: 15px;
        margin-bottom: 16px;
    }
    
    #tourTooltip button {
        padding: 10px 18px;
        font-size: 14px;
    }
    
    #tourProgress {
        gap: 7px;
        margin: 16px 0;
    }
    
    .tour-progress-dot {
        width: 7px;
        height: 7px;
    }
    
    #tourHighlight {
        border: 2.5px solid #3b82f6;
        border-radius: 10px;
    }
}

/* Tablets (768px - 1023px) */
@media (min-width: 768px) and (max-width: 1023px) {
    #tourTooltip {
        min-width: 500px;
        max-width: 80vw;
        padding: 24px;
        font-size: 16px;
    }
    
    #tourTooltip h3 {
        font-size: 20px;
        margin-bottom: 14px;
    }
    
    #tourTooltip p {
        font-size: 16px;
        margin-bottom: 18px;
        line-height: 1.5;
    }
    
    #tourTooltip button {
        padding: 12px 24px;
        font-size: 15px;
        margin-right: 8px;
    }
    
    #tourProgress {
        gap: 8px;
        margin: 20px 0;
    }
    
    .tour-progress-dot {
        width: 8px;
        height: 8px;
    }
    
    #tourHighlight {
        border: 3px solid #3b82f6;
        border-radius: 12px;
    }
}

/* Desktop (1024px - 1366px) */
@media (min-width: 1024px) and (max-width: 1366px) {
    #tourTooltip {
        min-width: 500px;
        max-width: 550px;
        padding: 28px;
        font-size: 16px;
    }
    
    #tourTooltip h3 {
        font-size: 22px;
        margin-bottom: 16px;
    }
    
    #tourTooltip p {
        font-size: 16px;
        margin-bottom: 20px;
        line-height: 1.6;
    }
    
    #tourTooltip button {
        padding: 12px 28px;
        font-size: 15px;
        margin-right: 10px;
    }
    
    #tourProgress {
        gap: 10px;
        margin: 24px 0;
    }
    
    .tour-progress-dot {
        width: 10px;
        height: 10px;
    }
    
    #tourHighlight {
        border: 3px solid #3b82f6;
        border-radius: 14px;
    }
}

/* Large Screens (1366px and above) */
@media (min-width: 1366px) {
    #tourTooltip {
        min-width: 550px;
        max-width: 600px;
        padding: 32px;
        font-size: 17px;
    }
    
    #tourTooltip h3 {
        font-size: 24px;
        margin-bottom: 18px;
    }
    
    #tourTooltip p {
        font-size: 17px;
        margin-bottom: 22px;
        line-height: 1.6;
    }
    
    #tourTooltip button {
        padding: 14px 32px;
        font-size: 16px;
        margin-right: 12px;
    }
    
    #tourProgress {
        gap: 10px;
        margin: 28px 0;
    }
    
    .tour-progress-dot {
        width: 10px;
        height: 10px;
    }
    
    #tourHighlight {
        border: 3px solid #3b82f6;
        border-radius: 16px;
    }
}





@keyframes creditbookColor {
    0%   { background: linear-gradient(90deg, #d946ef, #ec4899); }
    20%  { background: linear-gradient(90deg, #ec4899, #f59e42); }
    40%  { background: linear-gradient(90deg, #f59e42, #10b981); }
    60%  { background: linear-gradient(90deg, #10b981, #6366f1); }
    80%  { background: linear-gradient(90deg, #6366f1, #d946ef); }
    100% { background: linear-gradient(90deg, #d946ef, #ec4899); }
}
.animate-creditbook-color {
    animation: creditbookColor 8s linear infinite;
    background-size: 200% 200%;
    transition: background 0.5s linear;
    }
    .container {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 1.5rem;
    background-color: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    }
    table {
    border-collapse: collapse;
    width: 100%; /* Keep 100% for responsiveness within its container */
    max-width: 900px; /* New: Set a maximum width for the table */
    margin: 0 auto; /* New: Center the table */
    }
    th, td {
    border: 1px solid #e2e8f0;
    /* Padding moved to Tailwind classes for better control */
    }
    thead th {
    background-color: #f8f8f8;
    font-weight: 600;
    }

    /* Base transition and initial styling for all cards */
    .summary-card {
    transition: all 0.3s ease-in-out; /* Smooth transition for all properties */
    cursor: pointer;
    border: 2px solid rgba(255, 255, 255, 0.1); /* Subtle initial border */
    position: relative; /* For potential future pseudo-element animations */
    overflow: hidden; /* Ensures glow doesn't spill over too much */
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2); /* More depth to make it "lifted" */
    }

    /* Hover effects for summary cards with glow border */
    .card-hover-green-glow:hover {
    transform: translateY(-5px) scale(1.02); /* Lift and slightly enlarge */
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3),
                0 0 0 5px rgba(16, 185, 129, 0.7); /* Stronger overall shadow + green glow border */
    border-color: rgba(16, 185, 129, 0.5); /* Border lights up */
    }
    .card-hover-red-glow:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3),
                0 0 0 5px rgba(239, 68, 68, 0.7);
    border-color: rgba(239, 68, 68, 0.5);
    }
    .card-hover-blue-glow:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3),
                0 0 0 5px rgba(59, 130, 246, 0.7);
    border-color: rgba(59, 130, 246, 0.5);
    }

    /* Tap effect on active state */
    .summary-card:active {
    transform: scale(0.97) translateY(0); /* Sink in slightly */
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1), inset 0 0 5px rgba(255, 255, 255, 0.2); /* Subtle inner shadow for "pressed" */
    }

    /* Currency and Value Animation */
    .currency-prefix {
    display: inline-block; /* Allows transform */
    transition: transform 0.3s ease-out, opacity 0.3s ease-out, font-size 0.3s ease-out;
    margin-right: 4px; /* Space between symbol and number */
    }

    .summary-value {
    display: inline-block; /* Allows transform */
    transition: transform 0.3s ease-out, font-size 0.3s ease-out;
    }

    .summary-card:hover .currency-prefix {
    transform: translateX(-10px); /* Move left */
    opacity: 0; /* Fade out, giving illusion of symbol integrating or "sliding away" */
    font-size: 0.8em; /* Shrink slightly */
    }

    .summary-card:hover .summary-value {
    transform: translateX(-10px) scale(1.1); /* Move left to fill space and grow */
    font-size: 2.5rem; /* Larger font size on hover */
    }

    /* Keyframes for continuous line movement in Net Profit/Loss icon */
    @keyframes lineMovement {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-3px); /* Slightly more pronounced vertical movement */
    }
    }

    /* Apply animation to the specific path within the Net Profit/Loss icon */
    .animate-line-move path {
    animation: lineMovement 2s ease-in-out infinite; /* Continuous, smooth movement */
    transform-origin: center center; /* Ensure it moves from its center */
    }

    /* SVG Icon Animation */
    .icon-container {
    transition: transform 0.3s ease-out, filter 0.3s ease-out;
    }
    .summary-card:hover .icon-container {
    transform: rotate(10deg) scale(1.2); /* Rotate and grow more */
    filter: drop-shadow(0 0 5px rgba(255, 255, 255, 0.5)); /* Subtle icon glow */
    }

.flash-green-animate {
    animation: flashGreen 1s linear 0s 2 alternate;
}

@keyframes flashGreen {
    0%   { background-color: #bbf7d0; }
    20%  { background-color: #22c55e; }
    40%  { background-color: #3b82f6; }
    60%  { background-color: #f59e42; }
    80%  { background-color: #ef4444; }
    100% { background-color: #bbf7d0; }
}
#stockAddNotice {
  opacity: 0;
  transform: translateY(-10px);
  transition: opacity 0.5s ease, transform 0.5s ease;
  display: none; /* default hidden */
}

#stockAddNotice.show {
  display: block;
  opacity: 1;
  transform: translateY(0);
}
#stockAddNotice {
  cursor: pointer;
  text-decoration: underline;
}
#stockAddNotice:hover {
  color: #b91c1c; /* darker red on hover */
}
.animate-spin {
  animation: spin 1s linear infinite;
}
@keyframes spin {
    0% { transform: rotate(0deg);}
    100% { transform: rotate(360deg);}
}
@keyframes spin-colors {
    0% {
        border-top-color: #3498db;
        border-right-color: #e67e22;
        border-bottom-color: #2ecc71;
        border-left-color: #e84393;
    }
    25% {
        border-top-color: #e67e22;
        border-right-color: #2ecc71;
        border-bottom-color: #e84393;
        border-left-color: #3498db;
    }
    50% {
        border-top-color: #2ecc71;
        border-right-color: #e84393;
        border-bottom-color: #3498db;
        border-left-color: #e67e22;
    }
    75% {
        border-top-color: #e84393;
        border-right-color: #3498db;
        border-bottom-color: #e67e22;
        border-left-color: #2ecc71;
    }
    100% {
        border-top-color: #3498db;
        border-right-color: #e67e22;
        border-bottom-color: #2ecc71;
        border-left-color: #e84393;
    }
}

#adminProfileModal { z-index: 999999999999999999999999999999 !important; }
#salesProfileModal { z-index: 999999999999999999999999999999 !important; }
.admin-glow {
background: linear-gradient(90deg, #2563eb 0%, #f59e42 50%, #ef4444 100%);
opacity: 0.25;
filter: blur(12px);
animation: adminGlowMove 3s linear infinite;
}
@keyframes adminGlowMove {
0% { opacity: 0.25; }
50% { opacity: 0.5; }
100% { opacity: 0.25; }
}
.bg-blur {
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  background: rgba(0,0,0,0.18); /* Optional: darken a bit */
}
#clearAllNotifBtn {
  margin-bottom: 8px;
  float: right;
}
@keyframes adv-bounce {
  0%, 100% { transform: translateY(0);}
  50% { transform: translateY(-8px);}
}
#openNotesBtn span {
  animation: adv-bounce 1.2s infinite;
}
    @keyframes brick-bounce {
    0%   { transform: translateY(0); filter: brightness(1); }
    20%  { transform: translateY(-18px); filter: brightness(1.8); }
    40%  { transform: translateY(0); filter: brightness(1); }
    60%  { transform: translateY(18px); filter: brightness(1.2); }
    80%  { transform: translateY(0); filter: brightness(1); }
    100% { transform: translateY(0); filter: brightness(1); }
    }

    .brick-container {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    }

    .brick-reflection {
    width: 18px;
    height: 12px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.2);
    filter: blur(2px);
    transform: scaleX(1.2);
    margin-top: 4px;
    }
    @keyframes gradientMove {
    0% {background-position:0% 50%}
    50% {background-position:100% 50%}
    100% {background-position:0% 50%}
}
.animate-gradient-move {
    animation: gradientMove 4s ease infinite;
}
    @keyframes spin {
    0% { transform: rotate(0deg);}
    100% { transform: rotate(360deg);}
    }
    @keyframes spin-colors {
    0% {
        border-top-color: #3498db;
        border-right-color: #e67e22;
        border-bottom-color: #2ecc71;
        border-left-color: #e84393;
    }
    25% {
        border-top-color: #e67e22;
        border-right-color: #2ecc71;
        border-bottom-color: #e84393;
        border-left-color: #3498db;
    }
    50% {
        border-top-color: #2ecc71;
        border-right-color: #e84393;
        border-bottom-color: #3498db;
        border-left-color: #e67e22;
    }
    75% {
        border-top-color: #e84393;
        border-right-color: #3498db;
        border-bottom-color: #e67e22;
        border-left-color: #2ecc71;
    }
    100% {
        border-top-color: #3498db;
        border-right-color: #e67e22;
        border-bottom-color: #2ecc71;
        border-left-color: #e84393;
    }
    }
    @keyframes spin {
    0% { transform: rotate(0deg);}
    100% { transform: rotate(360deg);}
}
@keyframes spin-colors {
    0% {
        border-top-color: #3498db;
        border-right-color: #e67e22;
        border-bottom-color: #2ecc71;
        border-left-color: #e84393;
    }
    25% {
        border-top-color: #e67e22;
        border-right-color: #2ecc71;
        border-bottom-color: #e84393;
        border-left-color: #3498db;
    }
    50% {
        border-top-color: #2ecc71;
        border-right-color: #e84393;
        border-bottom-color: #3498db;
        border-left-color: #e67e22;
    }
    75% {
        border-top-color: #e84393;
        border-right-color: #3498db;
        border-bottom-color: #e67e22;
        border-left-color: #2ecc71;
    }
    100% {
        border-top-color: #3498db;
        border-right-color: #e67e22;
        border-bottom-color: #2ecc71;
        border-left-color: #e84393;
    }
}

    .bg-green-100 {
    background-color: #d1fae5 !important;
    }
    .text-green-900 {
    color: #065f46 !important;
    }
    .bg-red-100 {
    background-color: #fee2e2 !important;
    }
    .text-red-900 {
    color: #7f1d1d !important;
    }
    .text-green-600 {
    color: #16a34a !important;
    }
    .text-red-600 {
    color: #dc2626 !important;
    }
    .bg-green-200 {
    background-color: #bbf7d0 !important;
    }
    .bg-red-200 {
    background-color: #fecaca !important;
    }
    .text-green-700 {
    color: #15803d !important;
    }
    .text-red-700 {
    color: #b91c1c !important;
    }

    /* Loader Spinner */
    .animate-spin {
    border: 8px solid #e5e7eb;
    border-top: 6px solid #a80000;
    color: #0aaff0;
    border-radius: 50%;
    width: 48px;
    height: 48px;
    animation: spin 1s linear infinite;
    display: inline-block;
    }
    @keyframes spin {
    to { transform: rotate(360deg); }
    }
.clock-container {
            /* Mimicking button padding and rounded corners */
            padding: 8px 16px; /* py-2 px-4 equivalent */
            border-radius: 0.375rem; /* rounded-md equivalent */
            background: linear-gradient(135deg, #6a11cb 0%, #2575fc 100%); /* Vibrant gradient */
            background-size: 200% 200%; /* Larger background for animation */
            animation: gradientAnimation 15s ease infinite; /* Smooth gradient animation */
            color: white; /* White text */
            box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05); /* Subtle shadow */
            text-align: center;
            transition: background-color 0.3s ease, transform 0.1s ease; /* Smooth transitions */
            cursor: default; /* Not clickable like a button */
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            min-width: 120px; /* Ensure a minimum width for content */
        }

        .clock-container:hover {
            background-color: #2563eb; /* Darker blue on hover */
            transform: translateY(-1px); /* Slight lift effect */
        }

        /* Styling for the time display - scaled down */
        #currentTime {
            font-size: 1em; /* Smaller font size for time */
            font-weight: 600; /* Semi-bold text */
            letter-spacing: 0.5px;
            text-shadow: none; /* Remove heavy text shadow */
            margin-bottom: 2px; /* Reduced space below time */
            line-height: 1.2; /* Adjust line height */
            animation: none; /* Remove pulse animation for a static button look */
        }

        /* Styling for the date display - scaled down */
        #currentDate {
            font-size: 0.75em; /* Smaller font size for date */
            font-weight: 400;
            opacity: 0.9; /* Slightly less transparent */
            text-shadow: none; /* Remove text shadow */
            line-height: 1.2; /* Adjust line height */
        }
                @keyframes gradientAnimation {
            0% { background-position: 0% 50%; }
            50% { background-position: 100% 50%; }
            100% { background-position: 0% 50%; }
        }


.green-flash {
  animation: flash-green 0.5s ease-in-out; /* Adjust duration and timing as needed */
}

@keyframes flash-green {
  0% { background-color: transparent; } /* Or the table's default background */
  50% { background-color: lightgreen; } /* The flash color */
  100% { background-color: transparent; } /* Return to original */
}
.bg-white.rounded-lg.shadow-xl.w-11\/12.md\:w-3\/4.lg\:w-2\/3.max-h-\[90vh\].flex.flex-col {
  max-height: 90vh; /* Or a similar value that constrains the height */
  overflow: hidden; /* To prevent parent scrollbars */
}

#homeBusinessLogo {
    border: 4px solid transparent; 
    border-radius: 9999px; 
    transition: box-shadow 0.4s, border-color 0.4s, filter 0.4s, transform 0.2s;
    position: relative;
    outline: none; 
}
#homeBusinessLogo:hover,
#homeBusinessLogo:focus-visible {
    box-shadow:
        0 0 0 6px rgba(136, 209, 93, 0.55),  
        0 0 0 12px rgba(239, 68, 68, 0.45),    
        0 0 0 18px rgba(37, 99, 235, 0.45);   
    border-color: #2563eb; 
    filter: hue-rotate(-20deg); 
}
#homeBusinessLogo:hover {
    transform: translateY(-1px);
}
#homeBusinessLogo:focus-visible {
    box-shadow:
        0 0 0 6px rgba(56, 189, 248, 0.6),
        0 0 0 12px rgba(236, 72, 153, 0.45);
    outline: 3px solid #38bdf8;
}
.category-heading {
font-family: 'Poppins', 'Segoe UI', 'Arial', sans-serif;
  font-size: 1.25rem; /* Adjust font size as needed */
  text-transform: uppercase;
  position: center;
  background-color: #02080c;
}
.ripple {
    position: absolute;
    border-radius: 50%;
    transform: scale(0);
    animation: ripple-animation 1s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
    pointer-events: none;
}

/* Define a few different ripple colors with gradient backgrounds */
.ripple-1 { 
    background: radial-gradient(circle at 40% 40%, #6366f1 30%, #ff0984 60%, #f59e42 80%, #10b981 100%);
}
.ripple-2 { 
    background: radial-gradient(circle at 60% 60%, #ef4444 25%, #ff8503 55%, #34d399 80%, #3b82f6 100%);
}
.ripple-3 { 
    background: radial-gradient(circle at 50% 50%, #22c55e 20%, #00ffaa 50%, #6366f1 80%, #f59e42 100%);
}
.ripple-4 { 
    background: radial-gradient(circle at 60% 40%, #3b82f6 20%, #ff0000 50%, #f59e42 80%, #10b981 100%);
}

@keyframes ripple-animation {
    from {
        transform: scale(0);
        opacity: 1;
    }
    to {
        transform: scale(4); /* Made the ripple expand further */
        opacity: 0;
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}
#openStocksalesAppBtn {
  position: relative; /* Essential for positioning the ripple */
  overflow: hidden; /* Hides the ripple until it's triggered */
}

#openStocksalesAppBtn::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 5px;
  height: 5px;
  background-color: rgba(255, 255, 255, 0.4);
  border-radius: 50%;
  opacity: 0;
  transform: translate(-50%, -50%) scale(1);
  transition: transform 0.3s, opacity 0.3s;
}

#openStocksalesAppBtn:active::after {
  transform: translate(-50%, -50%) scale(20);
  opacity: 1;
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.4s;
}

        .language-selector {
            position: fixed;
            top: 20px;
            right: 80px;
            z-index: 1000;
            display: flex;
            align-items: center;
            background-color: rgba(176, 221, 93, 0.9);
            border-radius: 20px;
            padding: 5px 10px;
            box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
        }
        .language-selector select {
            background: transparent;
            border: none;
            font-size: 14px;
            font-weight: 500;
            color: #333;
            cursor: pointer;
            padding: 2px 5px;
            outline: none;
        }
        .language-selector .globe-icon {
            margin-right: 5px;
            color: #2563eb;
        }
        .dropdown {
            position: relative;
            display: inline-block;
        }
        
        .dropdown-content {
            display: none;
            position: absolute;
            bottom: 100%; /* Position above the button */
            left: 50%;
            transform: translateX(-50%);
            background-color: var(--bg-secondary);
            min-width: 120px;
            box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
            z-index: 1;
            border-radius: 8px;
            overflow: hidden;
        }
        
        .dropdown:hover .dropdown-content {
            display: block;
        }
        
        .dropdown-content button {
            color: var(--text-primary);
            padding: 8px 16px;
            text-decoration: none;
            display: block;
            width: 100%;
            text-align: center;
            border: none;
            background-color: transparent;
            cursor: pointer;
            transition: background-color 0.3s;
        }
        
        .dropdown-content button:hover {
            background-color: #333;
        }

    @media print {
  .text-blue-700 {
    color: #000 !important;
  }
}
        .social-media-links {
            display: flex;
            justify-content: center;
            gap: 20px;
            margin-top: 20px;
        }
        
        .social-media-links a {
            color: rgb(255, 255, 255);
            background-color: var(--secondary);
            width: 60px;
            height: 60px;
            display: flex;
            align-items: center;
            justify-content: center;
            border-radius: 50%;
            font-size: 24px;
            transition: transform 0.3s, background-color 0.3s;
        }
        
        .social-media-links a:hover {
            transform: scale(1.1);
        }
.social-media-container {
    text-align: center;
    padding: 20px;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    margin: 20px 0;
}

.social-title {
    color: #333;
    font-size: 18px;
    margin-bottom: 15px;
    font-weight: 600;
}

.social-media-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.social-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    padding: 15px 20px;
    border-radius: 12px;
    background: white;
    transition: all 0.3s ease;
    min-width: 100px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.08);
}

.social-btn:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

.social-icon-wrapper {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 10px;
    transition: all 0.3s ease;
}

.social-svg {
    width: 24px;
    height: 24px;
    fill: white;
}

.social-label {
    font-size: 14px;
    font-weight: 500;
    color: #333;
    transition: color 0.3s ease;
}

/* Facebook */
.facebook-btn:hover {
    background: #1877F2;
}

.facebook-btn:hover .social-label {
    color: white;
}

.facebook-btn .social-icon-wrapper {
    background: #1877F2;
}

/* TikTok */
.tiktok-btn:hover {
    background: #000000;
}

.tiktok-btn:hover .social-label {
    color: white;
}

.tiktok-btn .social-icon-wrapper {
    background: #000000;
}

/* Instagram */
.instagram-btn:hover {
    background: linear-gradient(45deg, #405DE6, #5851DB, #833AB4, #C13584, #E1306C, #FD1D1D);
}

.instagram-btn:hover .social-label {
    color: white;
}

.instagram-btn .social-icon-wrapper {
    background: linear-gradient(45deg, #405DE6, #5851DB, #833AB4, #C13584, #E1306C, #FD1D1D);
}

/* Animation */
@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
    100% { transform: translateY(0px); }
}

.social-btn:hover .social-icon-wrapper {
    animation: float 1s infinite;
}

/* Responsive */
@media (max-width: 768px) {
    .social-media-links {
        gap: 15px;
    }
    
    .social-btn {
        padding: 12px 15px;
        min-width: 85px;
    }
    
    .social-icon-wrapper {
        width: 40px;
        height: 40px;
    }
    
    .social-svg {
        width: 20px;
        height: 20px;
    }
    
    .social-label {
        font-size: 12px;
    }
}
        #social-media-links {
    background: linear-gradient(90deg, #2563eb 0%, #1e293b 100%);
    border-radius: 1rem;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}
    .future-lit-card {
  box-shadow: 0 8px 32px 0 rgba(56,189,248,0.25), 0 1.5px 8px 0 rgba(99,102,241,0.18);
  border-radius: 1.5rem;
  background: linear-gradient(135deg, #1e293b 60%, #2563eb 100%);
  position: relative;
  overflow: hidden;
}
.future-lit-card ul li {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 1.2rem;
  color: #fff;
  background: rgba(30,41,59,0.7);
  border-radius: 0.75rem;
  padding: 0.75rem 1.2rem;
  box-shadow: 0 2px 8px 0 rgba(56,189,248,0.08);
  transition: background 0.2s;
}
.future-lit-card ul li .rank {
  font-size: 1.5rem;
  font-weight: bold;
  color: #38bdf8;
  text-shadow: 0 0 8px #38bdf8;
  margin-right: 0.5rem;
}
.future-lit-card ul li .cat-name {
  font-weight: 600;
  letter-spacing: 0.04em;
  color: #a5b4fc;
}
.future-lit-card ul li .cat-amount {
  margin-left: auto;
  font-weight: bold;
  color: #facc15;
  text-shadow: 0 0 6px #facc15;
}
@keyframes spin-slow {
  0% { transform: rotate(0deg);}
  100% { transform: rotate(360deg);}
}
.animate-spin-slow {
  animation: spin-slow 3s linear infinite;
}


.card-hover-purple-glow:hover {
    box-shadow: 0 0 20px rgba(168, 85, 247, 0.5);
    transform: translateY(-2px);
    transition: all 0.3s ease;
}

.card-hover-orange-glow:hover {
    box-shadow: 0 0 20px rgba(249, 115, 22, 0.5);
    transform: translateY(-2px);
    transition: all 0.3s ease;
}
#prevWeekBtn, #nextWeekBtn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  border: none;
  background-color: #e5e7eb;
  border-radius: 50%;
  cursor: pointer;
  font-size: 20px;
  font-weight: bold;
  color: #374151;
  transition: 0.2s;
}
#prevWeekBtn:hover, #nextWeekBtn:hover {
  background-color: #d1d5db;
}
#prevWeekBtn { left: 0; }
#nextWeekBtn { right: 0; }

.loading-indicator {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.95);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.3s ease;
}

.loading-indicator.night-mode {
    background: rgba(0, 0, 0, 0.95);
    color: white;
}

.loading-dots {
    display: flex;
    gap: 8px;
    margin-bottom: 16px;
}

.loading-dots span {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #3b82f6;
    animation: loading-bounce 1.4s ease-in-out infinite both;
}

.loading-dots span:nth-child(1) { animation-delay: -0.32s; }
.loading-dots span:nth-child(2) { animation-delay: -0.16s; }

@keyframes loading-bounce {
    0%, 80%, 100% {
        transform: scale(0);
        opacity: 0.5;
    }
    40% {
        transform: scale(1);
        opacity: 1;
    }
}

.loading-indicator.hidden {
    opacity: 0;
    pointer-events: none;
}

/* --- ENVELOPE BASE STYLES & ELEGANT ENTRANCE (LANDSCAPE SUPPORT) --- */
.envelope {
    width: 450px;
    height: 250px;
    position: fixed;
    perspective: 1000px;
    
    
    /* Initial State: Off-screen at the bottom */
    bottom: -350px; 
    left: 50%;
    transform: translateX(-50%);
    opacity: 0;

    transition: bottom 1.5s cubic-bezier(0.25, 0.46, 0.45, 0.94), opacity 0.7s; 
    z-index: 9000000000000000000000000;
}

/* Active State: Slides up to center screen */
.envelope.active {
    bottom: 50%; 
    transform: translate(-50%, 50%); 
    opacity: 1;
}

/* Reverse State: Slides back down */
.envelope.fall {
    bottom: -350px;
    opacity: 0;
}

/* --- ENVELOPE BODY & FLAP --- */
.envelope-body {
    background-color: #ffffff; 
    border-radius: 12px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
    position: absolute;
    width: 100%;
    height: 100%;
    z-index: 1;
    border: 1px solid rgba(0,0,0,0.1);
}

.envelope-flap {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 125px;
    z-index: 3;
    clip-path: polygon(0 0, 100% 0, 50% 100%);
    background: linear-gradient(135deg, #1f2937 0%, #374151 100%); /* Gradient for flap */
    transform-origin: top;
    transition: transform 0.8s cubic-bezier(0.6, -0.28, 0.735, 0.045);
    border-radius: 12px 12px 0 0;
    border-bottom: none;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

/* Open Flap State */
.envelope.open .envelope-flap {
    transform: rotateX(180deg);
}

/* --- LANDSCAPE REWARD CARD (ZOOM ANIMATION) --- */
.reward-paper {
    position: absolute;
    top: 50%; 
    left: 50%;
    width: 90%; 
    height:  757.562px;
    background: #ffffff;
    z-index: 2; 
    border-radius: 8px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
    
    /* START STATE: Small, centered inside envelope */
    transform: translate(-50%, -50%) scale(0.1); 
    opacity: 0;
    transition: transform 1.2s cubic-bezier(0.68, -0.55, 0.265, 1.55), opacity 0.4s;
    
    /* Card Layout */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 30px;
}

/* ZOOM OUT STATE (Final Display Size) */
.envelope.zoom-out .reward-paper {
    position: fixed;
    top: 50%;
    left: 50%;
    
    width: 90vmin; 
    height: calc(90vmin / 1.6);
    
    max-width: 900px;
    max-height: 562.5px;

    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
    z-index: 10;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
}

/* ZOOM IN STATE (Dismissal) - Reverses to start state */
.envelope.zoom-in .reward-paper {
    transform: translate(-50%, -50%) scale(0.1); 
    position: absolute; 
    width: 90%;
    height: 80%;
    opacity: 0;
}
/* Certificate container + watermark styles */
#certificateContainer {
    background-color: whitesmoke; 
}


.certificate-inner {
    padding: 40px;
    border: 8px double #d4af37; /* Double border for elegance */
    display: flex;
    width: 1200px;
    height: 757.562px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    
}

/* Decorative Corners (more elegant) */
.certificate-inner::before, .certificate-inner::after {
    content: '';
    position: absolute;
    width: 60px;
    height: 60px;
    border: 10px solid #d4af37;
    border-radius: 0;
}
.certificate-inner::before {
    top: -4px; left: -4px;
    border-bottom: none;
    border-right: none;
}
.certificate-inner::after {
    bottom: -4px; right: -4px;
    border-top: none;
    border-left: none;
}

/* Add additional decorative corners */
.certificate-inner .corner-top-right,
.certificate-inner .corner-bottom-left {
    position: absolute;
    width: 60px;
    height: 60px;
    border: 10px solid #d4af37;
}
.certificate-inner .corner-top-right {
    top: -4px; right: -4px;
    border-bottom: none;
    border-left: none;
}
.certificate-inner .corner-bottom-left {
    bottom: -4px; left: -4px;
    border-top: none;
    border-right: none;
}

/* Certificate heading with improved styling */
.certificate-heading {
    font-family: 'Playfair Display', serif;
    font-size: 3.5rem;
    font-weight: 700;
    color: #1f2937;
  margin-bottom: 0 !important;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    position: relative;
}

.certificate-heading::after {
    content: '';
    display: block;
    width: 120px;
    height: 3px;
    background: linear-gradient(to right, transparent, #d4af37, transparent);
    margin: 15px auto;
}

.certificate-subheading {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    color: #4b5563;
    margin-bottom: 2rem;
    letter-spacing: 0.3em;
    text-transform: uppercase;
}

.certificate-recipient {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    color: #1f2937;
    margin: 2rem 0;
    font-weight: 700;
    font-style: italic;
    padding: 0.5rem 2rem;
    border-top: 2px solid #d4af37;
    border-bottom: 2px solid #d4af37;
    position: relative;
}

.certificate-message {
    font-size: 1.1rem;
    color: #4b5563;
    max-width: 600px;
    line-height: 1.6;
    margin-bottom: 2rem;
}

.certificate-signatures {
    display: flex;
    justify-content: space-between;
    width: 100%;
    max-width: 500px;
    margin-top: 2rem;
}

.signature-line {
    width: 150px;
    height: 1px;
    background-color: #9ca3af;
    margin: 0.5rem 0;
}

/* --- CONFETTI ANIMATION STYLES --- */
.confetti-container {
    position: fixed;
    top: 50%;
    left: 50%;
    pointer-events: none;
    z-index: 11;
    width: 0;
    height: 0;
    transform: translate(-50%, 50%); 
}

/* Confetti piece styling with more variety */
.confetti-piece {
    position: absolute;
    opacity: 0;
    transition: none; 
    box-shadow: 0 0 3px rgba(0,0,0,0.1);
}

.confetti-piece.circle { border-radius: 50%; }
.confetti-piece.triangle { clip-path: polygon(50% 0%, 0% 100%, 100% 100%); }
.confetti-piece.star { clip-path: polygon(50% 0%, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%); }

@keyframes burst-out {
    0% { transform: translate(0, 0) rotate(0deg); opacity: 1; }
    5% { opacity: 1; } 
    100% { 
        transform: translate(var(--x, 0), var(--y, 0)) rotate(var(--r, 720deg)); 
        opacity: 0; 
    }
}

.confetti-container.burst .confetti-piece {
    opacity: 1;
    animation: burst-out 4s forwards;
}


/* --- RESPONSIVE ADJUSTMENTS --- */
@media (max-width: 768px) {
    .envelope {
        width: 350px;
        height: 200px;
    }
    
    .certificate-heading {
        font-size: 2.5rem;
    }
    
    .certificate-recipient {
        font-size: 1.8rem;
    }
    
    .certificate-subheading {
        font-size: 1.2rem;
    }
    
    .reward-button {
        padding: 14px 30px;
        font-size: 1rem;
    }
    
    #downloadBtn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
}

.customReceiptModal {
  width: 70%; /* or 1056px */
  height: 70%; /* or 537px */
}
.star-rating {
    display: flex;
    gap: 2px;
}

.star {
    color: #6b7280; /* gray-500 - empty star color */
    font-size: 16px;
    line-height: 1;
}

.star.filled.gold { color: #ffea05; }      /* amber-400 */
.star.filled.silver { color: #055cf3; }    /* gray-400 */
.star.filled.bronze { color: #b45309; }    /* amber-700 */
#printWatermark {
    position: fixed;
    top: 35%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60%;
    opacity: 0.15;
    pointer-events: none;
    z-index: -1;
}

/* Make watermark visible only in print */
@media print {
    #printWatermark {
        display: block !important;
    }
}
@media screen {
    #printWatermark {
        display: none;
    }
}

div#receiptsListSection {
  max-height: 600px;
  overflow-y: auto;
}
div#boo{
  max-height: 800px;
   width: 1300px;
   max-width: none;
  overflow-y: auto;
}

/* More Info Modal Styles */
#moreInfoModal {
  animation: fadeIn 0.3s ease-out;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* Chart container */
#salesChart {
  width: 100% !important;
  height: 100% !important;
}
div#recordNewSaleSection {
  max-width: 800px; /* Adjust this value as needed to reduce the width */
  margin-left: auto;
  margin-right: auto;
      border: 2px solid white;
    border-radius: 1rem;
    padding: 1rem;
    background-color: rgba(255, 255, 255, 0.05);
}
div#addItemSection {
  max-width: 800px; /* Adjust this value as needed to reduce the width */
  margin-left: auto;
  margin-right: auto;
}
div#salesAssociatessection {
  max-width: 800px; /* Adjust this value as needed to reduce the width */
  margin-left: auto;
  margin-right: auto;
}
@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
#modalContent {
    max-height: calc(-40px + 100vh);
    overflow-y: auto;
    box-sizing: border-box;
}
.action-type-btn {
    transition: all 0.2s ease;
}

.action-type-btn:hover {
    transform: translateY(-1px);
}

/* Color coding for action types */
[data-action="restock"] { border-color: #10b981; }
[data-action="ship"] { border-color: #3b82f6; }
[data-action="give"] { border-color: #8b5cf6; }
[data-action="reduce"] { border-color: #f59e0b; }
[data-action="damage"] { border-color: #ef4444; }
[data-action="return"] { border-color: #6b7280; }

[data-action="restock"]:hover { background-color: #10b98111; }
[data-action="ship"]:hover { background-color: #3b82f611; }
[data-action="give"]:hover { background-color: #8b5cf611; }
[data-action="reduce"]:hover { background-color: #f59e0b11; }
[data-action="damage"]:hover { background-color: #ef444411; }
[data-action="return"]:hover { background-color: #6b728011; }



.notification-item {
    transition: all 0.2s ease;
}

.notification-item:hover {
    background-color: #f9fafb;
    transform: translateX(-2px);
    color: blue;
}

#notifDropdown {
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    border: 1px solid #e5e7eb;
    max-height: 500px;
    overflow-y: auto;
}

#notifList {
    scrollbar-width: thin;
    scrollbar-color: #9ca3af #f3f4f6;
}

#notifList::-webkit-scrollbar {
    width: 6px;
}

#notifList::-webkit-scrollbar-track {
    background: #f3f4f6;
    border-radius: 3px;
}

#notifList::-webkit-scrollbar-thumb {
    background-color: #9ca3af;
    border-radius: 3px;
}




@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
.zoommodal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6); /* translucent */
    backdrop-filter: blur(12px);
    z-index: 20000000000000;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Image Zoom Modal Styles */
#imageZoomModal {
    cursor: zoom-out;
    opacity: 0;
    transition: opacity 0.3s ease;
}

#imageZoomModal.active {
    opacity: 1;
    cursor: default;
}

#imageZoomModal.active img {
    cursor: grab;
}

#imageZoomModal.active img:active {
    cursor: grabbing;
}

.zoom-control-btn {
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
    backdrop-filter: blur(4px);
}

.zoom-control-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.05);
}

.zoom-control-btn:active {
    transform: scale(0.95);
}

/* Prevent image dragging */
#zoomedImage {
    -webkit-user-drag: none;
    user-select: none;
    -moz-user-select: none;
    -webkit-user-select: none;
    -ms-user-select: none;
}

/* Loading animation */
@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.loading {
    animation: pulse 1.5s ease-in-out infinite;
}

/* Mobile optimization */
@media (max-width: 640px) {
    #imageZoomModal .zoom-control-btn {
        width: 36px;
        height: 36px;
    }
    
    #zoomedImageTitle {
        font-size: 16px;
        bottom: 8px;
    }
    
    #zoomLevelIndicator {
        bottom: 8px;
        right: 8px;
    }
}
/* User photo hover effects */
.user-photo-zoom {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.user-photo-zoom:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    border-color: #3b82f6 !important;
}

/* Zoom overlay */
.user-photo-overlay {
    position: absolute;
    inset: 0;
    border-radius: 9999px;
    background: linear-gradient(to bottom, rgba(0,0,0,0) 0%, rgba(0,0,0,0.3) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.user-photo-container:hover .user-photo-overlay {
    opacity: 1;
}

/* Pulse animation for attention */
@keyframes photo-pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.user-photo-pulse {
    animation: photo-pulse 2s infinite;
}

.user-photo-pulse:hover {
    animation: none;
}
/* Screen styles for profit/loss cards */
.summary-card {
    border: 2px solid transparent;
    transition: all 0.3s ease;
}

.summary-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

/* ===== Overlay ===== */
#loadingOverlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(6px);
    align-items: center;
    justify-content: center;
    z-index: 9999999999999999999999999999999999999999999999999999999999999999999999999999999;
}
button:hover svg {
    transform: scale(1.1);
    transition: transform 0.2s ease;
}
/* ===== LOADING CARD ===== */
.loading-card {
    background: #ffffff;
    width: 320px;
    padding: 28px 24px;
    border-radius: 14px;
    text-align: center;
    box-shadow: 0 15px 40px rgba(0,0,0,0.25);
    animation: scaleIn 0.25s ease-out;
}

@keyframes scaleIn {
    from { transform: scale(0.9); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

/* ===== SPINNER ===== */
.spinner {
    width: 58px;
    height: 58px;
    border: 6px solid #e5e7eb;
    border-top-color: #2563eb;
    border-radius: 50%;
    margin: 0 auto 18px;
    animation: spin 1s linear infinite;
}

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

/* ===== TEXT ===== */
.loading-title {
    font-size: 18px;
    font-weight: 600;
    color: #111827;
    margin-bottom: 6px;
}

.loading-text {
    font-size: 14px;
    color: #6b7280;
    margin-bottom: 22px;
}

/* ===== CANCEL BUTTON ===== */
#cancelLoadingBtn {
    width: 100%;
    padding: 10px 14px;
    font-size: 14px;
    font-weight: 600;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    background: #ef4444;
    color: #ffffff;
    transition: background 0.2s ease;
}

#cancelLoadingBtn:hover {
    background: #dc2626;
}

#cancelLoadingBtn:disabled {
    background: #9ca3af;
    cursor: not-allowed;
}



@keyframes modalSlideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Progress bar animation */
#qrProgressBar {
    transition: width 0.3s ease;
}

/* Hover effects for radio buttons */
input[type="radio"]:checked + div {
    border-color: #3b82f6;
    background-color: rgba(59, 130, 246, 0.05);
}

/* Loading spinner */
@keyframes spin {
    to { transform: rotate(360deg); }
}

.animate-spin {
    animation: spin 1s linear infinite;
}


/* Custom Animations */
@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.animate-spin {
    animation: spin 1s linear infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.animate-pulse {
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.animate-shimmer {
    animation: shimmer 2s infinite;
}

/* Modal Animations */
@keyframes modalEnter {
    0% {
        opacity: 0;
        transform: scale(0.95) translateY(-10px);
    }
    100% {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.modal-content {
    animation: modalEnter 0.3s ease-out forwards;
}

/* Progress Bar Animation */
#qrProgressBar {
    transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.admin-btn {
    width: 100%;
    height: 44px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 14px;
    letter-spacing: 0.2px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color .2s ease, box-shadow .2s ease, transform .1s ease;
    box-shadow: 0 2px 6px rgba(0,0,0,0.08);
}

.admin-btn:active {
    transform: scale(0.98);
}

.admin-btn-primary {
    background-color: #4f46e5;
    color: #ffffff;
}

.admin-btn-primary:hover {
    background-color: #4338ca;
    box-shadow: 0 6px 14px rgba(79,70,229,0.35);
}

.admin-btn-success {
    background-color: #16a34a;
    color: #ffffff;
}

.admin-btn-success:hover {
    background-color: #15803d;
    box-shadow: 0 6px 14px rgba(22,163,74,0.35);
}
.liquid-loader {
    position: fixed;
    inset: 0;
    background: #02080c;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 99999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999 !important;
}

.liquid-text {
    position: relative;
    font-size: 120px;
    font-weight: 900;
    color: rgba(255, 255, 255, 0.05); /* The "Empty" part of the glass */
    text-transform: uppercase;
    -webkit-text-stroke: 1px rgba(255, 255, 255, 0.1);
}

.liquid-text::after {
    content: attr(data-text);
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    /* The Liquid Color - Deep Blue to Cyan */
    color: #00d2ff;
    -webkit-text-fill-color: #00d2ff;
    
    /* The Magic: This clips the text and applies the "Wobble" filter */
    filter: url(#liquid-filter);
    clip-path: inset(100% 0 0 0);
    animation: moveLiquid 6s ease-in-out infinite;
    
    /* Internal Glow */
    text-shadow: 
        0 0 15px rgba(0, 210, 255, 0.6),
        0 0 30px rgba(0, 210, 255, 0.3);
}

/* Second layer for surface highlights (makes it look 3D) */
.liquid-text::before {
    content: attr(data-text);
    position: absolute;
    left: 0;
    top: -2px; /* Offset slightly to create a "rim" of light */
    width: 100%;
    height: 100%;
    color: #fff;
    -webkit-text-fill-color: #fff;
    filter: url(#liquid-filter) blur(1px);
    clip-path: inset(100% 0 0 0);
    animation: moveLiquid 6s ease-in-out infinite;
    opacity: 0.4;
    z-index: 2;
}

@keyframes moveLiquid {
    0% {
        clip-path: inset(100% 0 0 0);
    }
    45% {
        clip-path: inset(20% 0 0 0);
    }
    55% {
        clip-path: inset(20% 0 0 0);
    }
    100% {
        clip-path: inset(0% 0 0 0);
    }
}

.toggle-btn {
    width: 78px;
    height: 40px;
    background: linear-gradient(135deg, #0c4fea, #1c1f26);
    border-radius: 999px;
    border: none;
    cursor: pointer;
    padding: 4px;
    display: flex;
    align-items: center;
    box-shadow:
        inset 0 0 6px rgba(0,0,0,0.6),
        0 0 10px rgba(0, 140, 255, 0.25);
    transition: background 0.3s ease;
}

/* sliding circle */
.toggle-knob {
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, #ff8a65, #ff5252);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 16px;
    box-shadow:
        0 0 8px rgba(255, 82, 82, 0.8);
    transform: translateX(0);
    transition: transform 0.35s ease, background 0.3s ease;
}

/* ON state */
.toggle-btn.active {
    background: linear-gradient(135deg, #0f172a, #020617);
}

.toggle-btn.active .toggle-knob {
    transform: translateX(38px);
    background: linear-gradient(135deg, #4facfe, #00f2fe);
    box-shadow:
        0 0 10px rgba(0, 242, 254, 0.9);
}
.toggle-grid {
    display: grid;
    grid-template-columns: repeat(2, auto);
    grid-template-rows: repeat(2, auto);
    gap: 16px;
    justify-content: center;
    align-items: center;
}




.toggle-knob {
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, #9ca3af, #6b7280);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #111827;
    font-size: 15px;
    transform: translateX(0);
    transition: transform 0.35s ease, background 0.3s ease, box-shadow 0.3s ease;
}

/* WIFI ON */
.toggle-btn.active {
    background: linear-gradient(135deg, #020617, #0f172a);
}

.toggle-btn.active .toggle-knob {
    transform: translateX(38px);
    background: linear-gradient(135deg, #22d3ee, #0ea5e9);
    color: #ffffff;
    box-shadow:
        0 0 10px rgba(14, 165, 233, 0.9),
        0 0 18px rgba(34, 211, 238, 0.6);
}
.share-btn {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: linear-gradient(135deg, #6366f1, #22d3ee);
    border: none;
    color: white;
    font-size: 18px;
    cursor: pointer;
    box-shadow: 0 0 12px rgba(99,102,241,.8);
    transition: transform .25s ease, box-shadow .25s ease;
}

.share-btn:hover {
    transform: scale(1.08);
}

.share-btn:active {
    transform: scale(0.92);
}

/* ACTIVE (modal open) */
.share-btn.active {
    box-shadow:
        0 0 12px rgba(34,211,238,.9),
        0 0 28px rgba(99,102,241,.8);
}
.share-modal {
  position: fixed;
  inset: 0;
  background: rgba(3, 7, 18, 0.75);
  backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 999999;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
}

.share-modal.show {
  opacity: 1;
  pointer-events: auto;
}

/* CARD */
.share-card {
  width: 340px;
  padding: 22px;
  border-radius: 22px;
  background: linear-gradient(145deg, rgba(15,23,42,.85), rgba(2,6,23,.85));
  backdrop-filter: blur(16px);
  color: #e5e7eb;
  text-align: center;
  position: relative;
  transform: translateY(30px) scale(0.94);
  opacity: 0;
  transition: all 0.4s ease;
  box-shadow:
    0 0 0 1px rgba(56,189,248,.25),
    0 25px 60px rgba(14,165,233,.25);
}

.share-modal.show .share-card {
  transform: translateY(0) scale(1);
  opacity: 1;
}

/* GLOW BORDER */
.share-card::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  background: linear-gradient(120deg, #22d3ee, #6366f1, #22d3ee);
  filter: blur(12px);
  opacity: .35;
  z-index: -1;
}

/* HEADER */
.share-header h2 {
  margin: 0;
  font-size: 20px;
  font-weight: 600;
}

.share-header p {
  font-size: 13px;
  color: #94a3b8;
  margin-bottom: 16px;
}

/* IMAGE */
.image-preview {
  width: 100%;
  height: 140px;
  border-radius: 14px;
  overflow: hidden;
  background: rgba(255,255,255,0.04);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
}

.image-preview img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

/* LINK */
.share-link {
  font-size: 12px;
  word-break: break-all;
  color: #38bdf8;
  margin-bottom: 12px;
}

/* QR */
.qr-box {
  background: white;
  padding: 10px;
  border-radius: 12px;
  display: inline-block;
  margin-bottom: 16px;
}

/* RATING */
.rating-box p {
  font-size: 13px;
  margin-bottom: 6px;
  color: #cbd5f5;
}

.stars {
  display: flex;
  justify-content: center;
  gap: 6px;
  font-size: 26px;
  cursor: pointer;
}

.stars span {
  color: #334155;
  transition: color 0.2s, transform 0.2s;
}

.stars span.active {
  color: #facc15;
  transform: scale(1.15);
}

#ratingText {
  display: block;
  margin-top: 6px;
  font-size: 12px;
  color: #94a3b8;
}

/* BUTTON */
.share-actions button {
  margin-top: 16px;
  width: 100%;
  padding: 10px;
  border-radius: 12px;
  border: none;
  background: linear-gradient(135deg, #0ea5e9, #6366f1);
  color: white;
  font-weight: 600;
  cursor: pointer;
  transition: transform .2s, box-shadow .2s;
}

.share-actions button:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 25px rgba(99,102,241,.45);
}

/* HELP BUTTON */
.help-btn {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    background: linear-gradient(135deg, #22c55e, #16a34a);
    color: white;
    font-size: 18px;
    box-shadow: 0 0 14px rgba(34,197,94,.8);
    transition: transform .25s ease, box-shadow .25s ease;
}

.help-btn:hover {
    transform: scale(1.08);
}

.help-btn.active {
    box-shadow: 0 0 25px rgba(34,197,94,1);
}
/* HELP MODAL */
.help-modal {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.65);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 99999;
    padding: 15px;
    opacity: 1;
    pointer-events: auto;
    transition: opacity .3s ease;
    backdrop-filter: blur(5px);
}

.help-modal.hidden {
    opacity: 0;
    pointer-events: none;
}


/* MODAL CONTAINER */
.help-modal > div {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    max-width: 650px;

    max-height: 95vh;
}


/* CARD */
.help-card {
    width: 100%;
    border-radius: 22px;
    padding: clamp(18px, 4vw, 35px);

    overflow-y: auto;
    max-height: 80vh;

    box-shadow:
        0 25px 60px rgba(0,0,0,.35);

    font-weight: 600;
}


/* TITLE */
.help-card h2 {
    font-size: clamp(22px, 5vw, 32px);
    font-weight: 900;
    letter-spacing: .5px;
    margin-bottom: 10px;
}


/* DESCRIPTION */
.help-card p {
    font-size: clamp(13px, 2vw, 16px);
    font-weight: 600;
    line-height: 1.6;
}


/* SECURITY BOXES */
.help-card h4 {
    font-weight: 900 !important;
    font-size: clamp(13px,2vw,16px);
}


.help-card strong {
    font-weight: 900;
}


/* EMAIL */
.email-link {
    font-size: 14px;
    font-weight: 900;
    display:flex;
    align-items:center;
    gap:8px;
}


/* CLOSE BUTTON */
.closebutton {

    width:100%;
    max-width:250px;

    margin-top:15px;

    padding:14px 25px;

    border-radius:15px;

    background:#111827;
    color:white;

    font-size:16px;
    font-weight:900;

    cursor:pointer;

    transition:.2s;
}


.closebutton:hover {
    transform:scale(1.05);
}


/* MOBILE */
@media(max-width:600px){

    .help-modal {
        padding:10px;
    }


    .help-card {

        border-radius:18px;

        max-height:82vh;

        padding:18px;

    }


    .help-card p {

        font-size:13px;

    }


    .closebutton {

        font-size:15px;

        padding:12px;

    }

}


/* SMALL PHONES */
@media(max-width:380px){

    .help-card {

        padding:14px;

    }


    .help-card h2 {

        font-size:20px;

    }


    .help-card p {

        font-size:12px;

    }

}
/* CARD */
.help-card {
    background: linear-gradient(145deg, #020617, #0f172a);
    color: white;
    padding: 24px;
    width: 100%;
    max-width: 560px;
    border-radius: 18px;
    text-align: left;
    transform: translateY(0) scale(1);
    opacity: 1;
    transition: all .4s ease;
    box-shadow: 0 0 30px rgba(34,197,94,.35);
    overflow-y: auto;
    max-height: calc(90vh - 64px);
}

.closebutton {
    background: linear-gradient(135deg, #22c55e, #16a34a);
    border: none;
    color: white;
    padding: 12px 24px;
    border-radius: 999px;
    cursor: pointer;
    margin-top: 4px;
}


/* EMAIL */
.email-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin: 16px 0 20px;
    padding: 10px 18px;
    border-radius: 999px;
    background: #1e293b;
    color: #22c55e;
    text-decoration: none;
    font-weight: 600;
    transition: background .2s ease, transform .2s ease;
}

.email-link:hover {
    background: #334155;
    transform: scale(1.05);
}

.closebutton {
    background: linear-gradient(135deg, #22c55e, #16a34a);
    border: none;
    color: white;
    padding: 8px 20px;
    border-radius: 999px;
    cursor: pointer;
}
.qr-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    background: white;
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

#qrCode {
    display: flex;
    justify-content: center;
    margin: 20px 0;
}
button {
    border: 1.5px solid rgba(255, 255, 255, 0.8) !important; /* Forces white border */
    transition: all 0.2s ease-in-out; /* Smooth hover effect */
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); /* Subtle shadow for depth */
}

/* Hover State */
button:hover {
    border-color: #ffffff !important; /* Pure white on hover */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2); /* Lift effect */
    transform: translateY(-1px); /* Slight lift */
}

/* Active/Click State */
button:active {
    border-color: 2.5px solid #fecd08 !important;
    transform: translateY(0px); /* Press down effect */
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}
.tour-target-active {
    border: 2.5px solid #fecd08 !important;
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.6) !important;
    z-index: 10000 !important;
    position: relative !important;
    background-color: white !important;
    color: #1d4ed8 !important;
    transform: scale(1.05);
    transition: all 0.3s ease;
    overflow: visible !important;
}

/* Glowing dot that runs around the border */
.tour-target-active::after {
    content: '';
    position: absolute;
    top: -8px;
    left: 50%;
    width: 16px;
    height: 16px;
    background: #fecd08;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    animation: run-around 3s linear infinite;
    z-index: 10001;
    box-shadow: 0 0 10px #fecd08, 0 0 20px #fecd08;
}

@keyframes run-around {
    0% {
        top: -8px;
        left: 0;
    }
    25% {
        top: -8px;
        left: 100%;
    }
    50% {
        top: calc(100% + 8px);
        left: 100%;
    }
    75% {
        top: calc(100% + 8px);
        left: 0;
    }
    100% {
        top: -8px;
        left: 0;
    }
}

/* For rectangular elements */
.tour-target-active::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    border-radius: inherit;
    border: 2px solid transparent;
    background: 
        linear-gradient(90deg, 
            #fecd08 0%, 
            #2563eb 33%, 
            #60a5fa 66%, 
            #fecd08 100%) border-box;
    background-size: 300% 300%;
    animation: border-run 2s linear infinite;
    z-index: -1;
    mask: 
        linear-gradient(#fff 0 0) padding-box, 
        linear-gradient(#fff 0 0);
    mask-composite: exclude;
    -webkit-mask-composite: xor;
}

@keyframes border-run {
    0% {
        background-position: 0% 0%;
    }
    100% {
        background-position: 300% 0%;
    }
}







/* Customer Transactions Modal Styles */
#customerTransactionsModal .modal-content {
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Customer card hover effect */
.customer-card {
    transition: all 0.2s ease;
}

.customer-card:hover {
    transform: translateX(4px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Type badges */
.type-badge-sale {
    background-color: #d1fae5;
    color: #065f46;
}

.type-badge-credit {
    background-color: #fef3c7;
    color: #92400e;
}

.type-badge-receipt {
    background-color: #dbeafe;
    color: #1e40af;
}

/* Status badges */
.status-badge-completed {
    background-color: #d1fae5;
    color: #065f46;
}

.status-badge-pending {
    background-color: #fef3c7;
    color: #92400e;
}

.status-badge-paid {
    background-color: #d1fae5;
    color: #065f46;
}
#customerTransactionsTable {
  flex-grow: 1; /* Allows it to take available space */
  overflow-y: auto;
    max-height: 300px; /* Adjust this value as needed */
  overflow-y: auto; /* Ensure scrolling if content exceeds max-height */
}
#customerSearchResults {
  max-height: 400px; /* Adjust this value as needed */
  overflow-y: auto; /* Ensure scrolling if content exceeds max-height */
}


input[type="checkbox"] {
    /* Hide default checkbox */
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    
    /* Custom checkbox styling */
    width: 24px;
    height: 24px;
    border: 3px solid greenyellow;
    border-radius: 6px;
   
    cursor: pointer;
    position: relative;
    transition: all 0.2s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    margin-right: 10px;
    vertical-align: middle;
}

/* Checked state */
input[type="checkbox"]:checked {
    background-color: #4f46e5; /* Blue background */
    border-color:9px solid blue;
       content: "✔";
       color: #4f46e5; /* Blue tick */
}

/* White bold tick */
input[type="checkbox"]:checked::after {
    content: "✔";
    color: #4f46e5; /* Blue tick */
    font-size: 16px;
    font-weight: 900;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -55%);
}

/* Click / active effect */
input[type="checkbox"]:active {
    transform: scale(0.9);
}

        
  .backup-container {
            padding: 20px;
            background: #f5f7fa;
            min-height: 100vh;
            z-index: 100000000;
        }
        
        .backup-card {
            background: white;
            border-radius: 10px;
            padding: 25px;
            margin-bottom: 20px;
            box-shadow: 0 2px 10px rgba(0,0,0,0.1);
        }
        
        .backup-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 20px;
        }
        
        .backup-title {
            font-size: 24px;
            font-weight: 600;
            color: #333;
        }
        
        .backup-status {
            padding: 8px 16px;
            border-radius: 20px;
            font-weight: 600;
            font-size: 14px;
        }
        
        .status-enabled {
            background: #d4edda;
            color: #155724;
        }
        
        .status-disabled {
            background: #f8d7da;
            color: #721c24;
        }
        
        .setting-row {
            margin: 15px 0;
            display: flex;
            align-items: center;
        }
        
        .setting-label {
            width: 200px;
            font-weight: 500;
            color: #555;
        }
        
        .setting-control {
            flex: 1;
        }
        
        select, input[type="number"] {
            padding: 8px 12px;
            border: 1px solid #ddd;
            border-radius: 4px;
            width: 200px;
        }
        
        .backup-actions {
            display: flex;
            gap: 10px;
            margin-top: 25px;
        }
        
        .btn {
            padding: 10px 20px;
            border: none;
            border-radius: 5px;
            cursor: pointer;
            font-weight: 600;
            transition: all 0.3s;
        }
        
        .btn-primary {
            background: #007bff;
            color: white;
        }
        
        .btn-primary:hover {
            background: #0056b3;
        }
        
        .btn-success {
            background: #28a745;
            color: white;
        }
        
        .btn-success:hover {
            background: #218838;
        }
        
        .btn-warning {
            background: #ffc107;
            color: #212529;
        }
        
        .btn-warning:hover {
            background: #e0a800;
        }
        
        .backup-history {
            max-height: 300px;
            overflow-y: auto;
        }
        
        .backup-item {
            padding: 12px;
            border-bottom: 1px solid #eee;
            display: flex;
            justify-content: space-between;
            align-items: center;
        }
        
        .backup-info {
            flex: 1;
        }
        
        .backup-name {
            font-weight: 500;
            margin-bottom: 4px;
        }
        
        .backup-meta {
            font-size: 12px;
            color: #666;
        }
        
        .status-badge {
            padding: 3px 8px;
            border-radius: 12px;
            font-size: 12px;
            font-weight: 600;
        }
        
        .status-success {
            background: #d4edda;
            color: #155724;
        }
        
        .status-failed {
            background: #f8d7da;
            color: #721c24;
        }
        
        .drive-list {
            background: #f8f9fa;
            border-radius: 5px;
            padding: 15px;
            margin: 15px 0;
        }
        
        .drive-item {
            padding: 8px;
            border-bottom: 1px solid #dee2e6;
        }
        
        .restore-btn {
            background: #17a2b8;
            color: white;
            padding: 5px 10px;
            border-radius: 3px;
            border: none;
            cursor: pointer;
            font-size: 12px;
        }
        
        .alert {
            padding: 12px;
            border-radius: 5px;
            margin: 10px 0;
        }
        
        .alert-success {
            background: #d4edda;
            color: #155724;
            border: 1px solid #c3e6cb;
        }
        
        .alert-danger {
            background: #f8d7da;
            color: #721c24;
            border: 1px solid #f5c6cb;
        }
        
        .alert-info {
            background: #d1ecf1;
            color: #0c5460;
            border: 1px solid #bee5eb;
        }

        .qr-overlay {
    position: fixed;
    inset: 0;
   
    display: flex;
    align-items: flex-end;
    justify-content: center;
    z-index: 999999;

    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

/* Show State */
.qr-overlay:not(.hidden) {
    opacity: 1;
    pointer-events: auto;
}

/* Modal */
.qr-modal {
    width: 100%;
    max-width: 500px;
   background-color: #23232a !important;
    color: #e5e7eb !important; 
    border-radius: 22px 22px 0 0;
    padding: 25px 20px 35px;
    position: relative;
    box-shadow: 0 -15px 40px rgba(0,0,0,0.25);

    transform: translateY(100%);
    transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

/* Slide Up Animation */
.qr-overlay:not(.hidden) .qr-modal {
    transform: translateY(0);
}

/* Drag Handle (Modern Look) */
.qr-handle {
    width: 45px;
    height: 5px;
    background: #d1d5db;
    border-radius: 50px;
    margin: 0 auto 20px;
}

/* Close Button */
.qr-close-btn {
    position: absolute;
    right: 18px;
    top: 15px;
    font-size: 24px;
    font-weight: bold;
    border: none;
    background: none;
    cursor: pointer;
    color: #555;
    transition: 0.2s ease;
}

.qr-close-btn:hover {
    color: #111;
}

/* Title */
.qr-title {
    text-align: center;
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 20px;
    color: white;
}
/* Center wrapper */
.qr-video-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Scanner Frame */
.scanner-frame {
    position: relative;
    width: 100%;
    max-width: 320px;
    aspect-ratio: 1 / 1; /* Perfect square */
    border-radius: 20px;
    overflow: hidden;
}

/* Video inside frame */
#qrVideo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 20px;
}

/* Glowing Animated Border */
.scanner-frame::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 20px;
    padding: 3px;
    background: linear-gradient(
        45deg,
        #2563eb,
        #60a5fa,
        #3b82f6,
        #2563eb
    );
    background-size: 300% 300%;
    animation: borderGlow 4s linear infinite;

    -webkit-mask:
        linear-gradient(#000 0 0) content-box,
        linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
            mask-composite: exclude;
}

/* Border Animation */
@keyframes borderGlow {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Scan Line */
.scan-line {
    position: absolute;
    left: 0;
    width: 100%;
    height: 4px;

    background: linear-gradient(
        to right,
        transparent,
        rgba(37, 99, 235, 0.9),
        transparent
    );

    box-shadow: 0 0 15px rgba(37, 99, 235, 0.8);

    animation: scanMove 2.2s ease-in-out infinite;
}

/* Scan animation */
@keyframes scanMove {
    0% {
        top: 5%;
        opacity: 0.3;
    }
    50% {
        opacity: 1;
    }
    100% {
        top: 90%;
        opacity: 0.3;
    }
}
.qr-controls {
    display: flex;
    justify-content: center;
    padding: 20px 0;
}

.qr-control-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
    padding: 10px 20px;
    border-radius: 25px;
    font-size: 14px;
    cursor: pointer;
    backdrop-filter: blur(5px);
    transition: background 0.3s;
}

.qr-control-btn:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* ===============================
   OVERLAY
=================================*/
.moreinfo-overlay {
    position: fixed;
    inset: 0;
    background: rgba(17, 24, 39, 0.75);
    backdrop-filter: blur(10px);
    z-index: 99999999999999;

    display: flex;
    align-items: center;
    justify-content: center;

    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.moreinfo-overlay:not(.hidden) {
    opacity: 1;
    pointer-events: auto;
}

/* ===============================
   DESKTOP / TABLET
=================================*/
.moreinfo-container {
    width: 92%;
    max-height: 92vh;
    overflow: hidden;
    border-radius: 20px;
    transform: scale(0.95) translateY(20px);
    transition: transform 0.35s cubic-bezier(.22,1,.36,1);
    display: flex;
    flex-direction: column;
}

.moreinfo-overlay:not(.hidden) .moreinfo-container {
    transform: scale(1) translateY(0);
}

/* Scroll only content, not whole modal */
.moreinfo-container > div:nth-child(2) {
    overflow-y: auto;
    flex: 1;
}

/* ===============================
   MOBILE BOTTOM SLIDE MODE
=================================*/
@media (max-width: 768px) {

    .moreinfo-overlay {
        align-items: flex-end;
    }

    .moreinfo-container {
        width: 100%;
        max-height: 92vh;
        border-radius: 24px 24px 0 0;

        transform: translateY(100%);
    }

    .moreinfo-overlay:not(.hidden) .moreinfo-container {
        transform: translateY(0);
    }
}

/* ===============================
   ANDROID SAFE AREA FIX
=================================*/
@supports(padding: max(0px)) {
    .moreinfo-container {
        padding-bottom: max(16px, env(safe-area-inset-bottom));
    }
}

/* ===============================
   OVERLAY
=================================*/
.analytics-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100dvh; /* 🔥 important fix */
    background: rgba(17,24,39,.75);
    backdrop-filter: blur(10px);
    z-index: 9999;

    display: block; /* ❌ remove flex */
    opacity: 0;
    pointer-events: none;
    transition: opacity .3s ease;
}

.analytics-overlay:not(.hidden) {
    opacity: 1;
    pointer-events: auto;
}
.analytics-overlay:not(.hidden) {
    opacity: 1;
    pointer-events: auto;
}

/* ===============================
   CONTAINER
=================================*/
.analytics-container {
    width: 94%;
    max-height: 92vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;

    transform: scale(.94) translateY(30px);
    transition: transform .35s cubic-bezier(.22,1,.36,1);
}

.analytics-overlay:not(.hidden) .analytics-container {
    transform: scale(1) translateY(0);
}

/* HEADER & FOOTER */
.analytics-header,
.analytics-footer {
    flex-shrink: 0;
}

/* BODY SCROLL ONLY */
.analytics-body {
    flex: 1;
    overflow-y: auto;
    padding: 1.5rem;
}

/* ===============================
   COMPONENT STYLES
=================================*/

.summary-card {
    padding: 1rem;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
}
.summary-card h3 {
    font-size: 1.5rem;
    font-weight: 700;
}



.section-box {
    background: #fff;
    padding: 1.25rem;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
}

.year-btn {
    padding: 4px 10px;
    border-radius: 8px;
    background: #f3f4f6;
}
.year-display {
    padding: 4px 14px;
    border-radius: 8px;
    background: #e5e7eb;
    font-weight: 600;
}

.close-btn {
    font-size: 20px;
    padding: 6px 10px;
    border-radius: 50%;
}

.primary-btn {
    background: #2563eb;
    color: white;
    padding: 8px 16px;
    border-radius: 8px;
}

.secondary-btn {
    background: #111827;
    color: white;
    padding: 8px 16px;
    border-radius: 8px;
}

/* ===============================
   MOBILE BOTTOM SHEET
=================================*/
@media (max-width:768px){

    .analytics-overlay {
        align-items: flex-end;
    }

    .analytics-container {
        width: 100%;
        border-radius: 24px 24px 0 0;
        transform: translateY(100%);
    }

    .analytics-overlay:not(.hidden) .analytics-container {
        transform: translateY(0);
    }

    .analytics-body {
        padding: 1rem;
    }
}

/* SAFE AREA */
@supports(padding: max(0px)) {
    .analytics-container {
        padding-bottom: max(12px, env(safe-area-inset-bottom));
    }
}

.backup-badge {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    margin-left: 8px;
    background-color: gray; /* default */
    box-shadow: 0 0 4px rgba(0,0,0,0.3);
}

.backup-now-btn {
    background: linear-gradient(to right, #10b981, #059669);
    color: white;
    border: none;
    border-radius: 8px;
    padding: 8px 16px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s;
}
.backup-now-btn:hover { transform: translateY(-1px); box-shadow: 0 4px 8px rgba(0,0,0,0.1); }
.backup-now-btn:disabled { opacity: 0.6; cursor: not-allowed; }
.backup-now-btn svg { width: 18px; height: 18px; }
.row-click-animation {
  animation: row-pulse 0.2s ease;
}

@keyframes row-pulse {
  0% {
    background-color:green; /* light blue */
  }
  100% {
    background-color: transparent;
  }
}
.schedule-option.active {
    border-color: #3b82f6;
    background-color: #00ff40;
    font-weight: 500;
}

 .loading-glass {
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(30px);
    border-radius: 20px;
    border: 2px solid rgba(255, 255, 255, 0.1);
    padding: 3rem;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
  }

  .glass-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
  }

  .pulse-dot {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    animation: pulse-scale 2s ease-in-out infinite;
  }

  .pulse-delay-1 {
    animation-delay: 0.2s;
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
  }

  .pulse-delay-2 {
    animation-delay: 0.4s;
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
  }

  @keyframes pulse-scale {
    0%, 100% {
      transform: scale(1);
      opacity: 1;
    }
    50% {
      transform: scale(1.3);
      opacity: 0.5;
    }
  }

  .glass-text {
    font-size: 1.5rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.9);
    letter-spacing: 3px;
    text-transform: uppercase;
    animation: fade-in-out 2s ease-in-out infinite;
  }

  @keyframes fade-in-out {
    0%, 100% {
      opacity: 1;
    }
    50% {
      opacity: 0.4;
    }
  }
.MODAL-LOCK-OPEN {
   
    visibility: visible !important;

}

.image-context-menu {
    position: absolute;
    background: blue;
    border: 1px solid #ddd;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    border-radius: 8px;
    z-index: 9999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999;
    min-width: 150px;
    padding: 8px 0;
    font-family: sans-serif;
}

.image-context-menu button {
    width: 100%;
    padding: 8px 16px;
    text-align: left;
    background: none;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
}

.image-context-menu button:hover {
    background: #f0f7ff;
    color: #2563eb;
}

.image-context-menu .menu-divider {
    height: 1px;
    background: #eee;
    margin: 4px 0;
}
div#notesEditor {
  height: auto; /* Allow height to adjust to content, up to max-height */
  max-height: 800px; /* Example maximum height */
  width: auto; /* Allow width to adjust to content, up to max-width */
  max-width: 900px;  /* Example maximum width */
  overflow: auto; /* Adds scrollbars if content overflows */
      padding-top: 10px;
    margin-top: 40px;
}.update-banner {
    /* Layout */
    display: flex; 
    position: fixed;
    top: 1rem;
    left: 50%;
    transform: translateX(-50%);
    width: 95%;
    max-width: 42rem;
    padding: 1rem;
    justify-content: space-between;
    align-items: center;
    
    /* Visuals */
    z-index: 9999999 !important;
    border-radius: 1rem;
    box-shadow: 0 25px 50px -12px rgba(0,0,0,0.25);
    border: 1px solid rgba(255,255,255,0.2);
    backdrop-filter: blur(12px);
    overflow: hidden;
    
    /* CLICK FIXES */
    pointer-events: auto !important; /* Allow clicks on the banner */
    isolation: isolate; /* Creates a clean layer for buttons to sit on */
    
    /* Animation */
    animation: glow-pulse 4s infinite ease-in-out;
}

/* Use the hidden class to hide it properly */
.update-banner.hidden {
    display: none !important;
}

.shimmer-effect {
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.2),
        transparent
    );
    transform: skewX(-20deg);
    animation: shimmer 3s infinite;
    z-index: -1; /* Keep behind text */
    pointer-events: none; /* FIX: Makes shimmer "ghost-like" so clicks pass through it */
}

/* Button fix to ensure they show the hand cursor */
#updateInstallBtn, #closeUpdateBannerBtn {
    cursor: pointer !important;
    pointer-events: auto !important;
}

@keyframes shimmer {
    0% { left: -100%; }
    100% { left: 200%; }
}

@keyframes glow-pulse {
    0%, 100% { box-shadow: 0 0 20px rgba(139, 92, 246, 0.3); }
    50% { box-shadow: 0 0 40px rgba(236, 72, 153, 0.5); }
}

@keyframes rocket-bounce {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-5px) rotate(10deg); }
}

.animate-bounce {
    animation: rocket-bounce 1s infinite alternate ease-in-out;
}

    .toggle-container { display: flex; align-items: center; gap: 10px; font-family: sans-serif; }
    .switch { position: relative; display: inline-block; width: 40px; height: 22px; }
    .switch input { opacity: 0; width: 0; height: 0; }
    .slider { position: absolute; cursor: pointer; top: 0; left: 0; right: 0; bottom: 0; 
              background-color: #ccc; transition: .4s; border-radius: 34px; }
    .slider:before { position: absolute; content: ""; height: 16px; width: 16px; left: 3px; 
                     bottom: 3px; background-color: white; transition: .4s; border-radius: 50%; }
    input:checked + .slider { background-color: #2196F3; }
    input:checked + .slider:before { transform: translateX(18px); }

    .glass-modal {
    background: rgba(255, 255, 255, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 16px;
    padding: 24px;
    width: 90%; max-width: 450px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.sentiment-options {
    display: flex; gap: 15px; margin: 15px 0;
}

.sentiment-btn {
    background: rgba(255, 255, 255, 0.5);
    border: 1px solid rgba(0,0,0,0.1);
    font-size: 24px; padding: 10px; border-radius: 12px;
    cursor: pointer; transition: 0.3s; flex: 1;
}

.sentiment-btn:hover, .sentiment-btn.active {
    background: #007bff; /* Professional Blue */
    color: white; transform: translateY(-3px);
}

textarea {
    width: 100%; border-radius: 8px; border: 1px solid rgba(0,0,0,0.1);
    padding: 12px; margin-top: 8px; background: rgba(255,255,255,0.8);
    font-family: inherit; resize: none;
}

.btn-primary {
    background: #007bff; color: white; border: none;
    padding: 10px 20px; border-radius: 8px; cursor: pointer;
}
#adminModalContent {
  max-height: 500px; /* You can change 500px to any desired fixed pixel value */
  overflow-y: auto; /* Keep this to ensure content remains scrollable if it exceeds the max-height */
}

.nosee {
    visibility: hidden;
}
.see {
    visibility: visible !important;
    display: block !important; /* Ensures the element is not hidden by display: none */
}

.floating-btn {
  position: fixed;
  bottom: 134px;
  right: 24px;
  background: #e60012;
  color: white;
  width: 48px;
  height: 48px;
  border-radius: 60px;
  border: none;
  font-size: 24px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999999;
}

#filterPanel {
  background-color: rgb(35, 35, 42);
}
#filterPanel {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  height: 100vh;
    inset: 0;
  flex-direction: column;
  z-index: 2147483647!important;
  background-color: rgb(35, 35, 42);
  left: 0; 
  width: 100%;
}

/* For tablets and desktops (typically 768px and up) */
@media (min-width: 768px) {
  #filterPanel {
    left: auto; /* Lets the panel "stick" to the right */
    width: 400px; /* Fixed width for larger screens */
  }
}

#filterPanel > .p-4:first-child {
  flex: 1;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch; /* Smoother scrolling on iOS */
}

#filterPanel > .p-4.border-t {
  flex-shrink: 0;
}
#filterPanel {
  z-index: 2147483647;
  position: fixed;
}
#filterModal {
  z-index: 2147483647;
  position: fixed;
}
/* Base Modal Styles */
#adminProfileModal {
    transition: all 0.3s ease;
}

#adminProfileModal .max-w-4xl {
    transition: all 0.3s ease;
}

/* Profile Image Responsive */
#adminDisplaySection .w-24 {
    transition: all 0.3s ease;
}

/* Admin Info Grid Responsive */
#adminDisplaySection .grid {
    transition: all 0.3s ease;
}

/* ============================================ */
/* TABLET STYLES (768px - 1024px) */
/* ============================================ */
@media (max-width: 1024px) and (min-width: 768px) {
    #adminProfileModal .max-w-4xl {
        max-width: 95vw;
        border-radius: 1.5rem;
    }
    
    #adminProfileModal .p-6 {
        padding: 1.25rem;
    }
    
    #adminDisplaySection .grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    
    #adminDisplaySection .w-24 {
        width: 5rem;
        height: 5rem;
    }
    
    #adminDisplaySection h2 {
        font-size: 1.5rem;
    }
    
    /* Info cards */
    #adminDisplaySection .p-4 {
        padding: 0.875rem;
    }
    
    /* Buttons */
    #goToEditBtn,
    #saveAdminProfileBtn,
    #cancelEditBtn {
        padding: 0.875rem;
        font-size: 0.875rem;
    }
}

/* ============================================ */
/* SMALL TABLET & LARGE MOBILE (480px - 768px) */
/* ============================================ */
@media (max-width: 768px) {
    #adminProfileModal {
        padding: 0.75rem;
        align-items: flex-start;
            width: 100vw !important;
    height: 100dvh !important;
    max-height: 100dvh !important;
    }
    
    #adminProfileModal .max-w-4xl {
        max-width: 100%;
        border-radius: 1.25rem;
        max-height: 90vh;
    }
    
    #adminProfileModal .p-6 {
        padding: 1rem;
    }
    
    /* Header */
    #adminProfileModal .border-b {
        padding: 1rem;
    }
    
    #profileModalTitle {
        font-size: 1.25rem;
    }
    
    /* Profile Image */
    #adminDisplaySection .w-24 {
        width: 4.5rem;
        height: 4.5rem;
        border-width: 3px;
    }
    
    #adminDisplaySection .absolute.-bottom-2 {
        width: 2.25rem;
        height: 2.25rem;
        bottom: -0.25rem;
        right: 0.25rem;
    }
    
    #adminDisplaySection h2 {
        font-size: 1.35rem;
        margin-top: 1rem;
    }
    
    /* Grid - Switch to single column */
    #adminDisplaySection .grid {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }
    
    /* Info cards */
    #adminDisplaySection .p-4 {
        padding: 0.75rem;
    }
    
    #adminDisplaySection .p-3 {
        padding: 0.625rem;
    }
    
    #adminDisplaySection .w-6 {
        width: 1.25rem;
        height: 1.25rem;
    }
    
    /* Text sizes */
    #displayAdminPhone,
    #displayAdminEmail,
    #displayAdminAddress {
        font-size: 0.95rem;
    }
    
    .text-xs {
        font-size: 0.7rem;
    }
    
    /* Buttons */
    #goToEditBtn,
    #saveAdminProfileBtn,
    #cancelEditBtn {
        padding: 0.75rem;
        font-size: 0.85rem;
        border-radius: 0.75rem;
    }
    
    #goToEditBtn svg,
    #saveAdminProfileBtn svg {
        width: 1rem;
        height: 1rem;
    }
    
    /* Edit Section */
    #adminEditSection .grid {
        gap: 0.75rem;
    }
    
    #adminEditSection input,
    #adminEditSection textarea {
        padding: 0.625rem;
        font-size: 0.875rem;
    }
    
    /* Edit profile image */
    #adminEditSection .w-24 {
        width: 4rem;
        height: 4rem;
    }
    
    /* Flex gap for buttons */
    .flex.gap-3 {
        gap: 0.5rem;
    }
}



/* ========================================
   PWA INSTALL BANNER - FULLY RESPONSIVE
   ======================================== */

.pwa-install-banner {
    position: fixed;
    bottom: 1rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 999999;
    display: none;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    width: calc(100% - 2rem);
    max-width: 500px;
    min-width: 280px;
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    color: #f8fafc;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 1.25rem;
    padding: 0.875rem 1.25rem;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3), 0 0 0 1px rgba(255, 255, 255, 0.05);
    animation: slideUp 0.4s cubic-bezier(0.21, 1.11, 0.35, 1.01);
}

/* Show state */
.pwa-install-banner.show {
    display: flex;
}

/* Content wrapper */
.pwa-install-content {
    display: flex;
    align-items: center;
    gap: 0.875rem;
    flex: 1;
}

/* Icon styling */
.pwa-install-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #10b981, #059669);
    border-radius: 0.875rem;
    flex-shrink: 0;
}

.pwa-install-icon svg {
    width: 22px;
    height: 22px;
    stroke: white;
    stroke-width: 1.8;
}

/* Text styling */
.pwa-install-text strong {
    font-size: 0.95rem;
    font-weight: 700;
    display: block;
    color: #f8fafc;
}

.pwa-install-text p {
    margin: 0.2rem 0 0;
    font-size: 0.75rem;
    color: rgba(248, 250, 252, 0.75);
}

/* Actions container */
.pwa-install-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-shrink: 0;
}

/* Install button */
.pwa-install-btn {
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    border: none;
    border-radius: 0.75rem;
    padding: 0.625rem 1.25rem;
    font-weight: 600;
    font-size: 0.875rem;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.3);
}

.pwa-install-btn:hover {
    transform: scale(1.02);
    background: linear-gradient(135deg, #059669, #047857);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.4);
}

.pwa-install-btn:active {
    transform: scale(0.98);
}

/* Close button */
.pwa-install-close {
    background: rgba(255, 255, 255, 0.1);
    color: #f8fafc;
    border: none;
    border-radius: 0.5rem;
    width: 32px;
    height: 32px;
    font-size: 1.25rem;
    font-weight: 400;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.pwa-install-close:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.05);
}

.pwa-install-close:active {
    transform: scale(0.95);
}

/* ========================================
   ANIMATION
   ======================================== */
@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(100%);
    }
    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

/* ========================================
   RESPONSIVE BREAKPOINTS
   ======================================== */

/* Mobile (up to 480px) */
@media screen and (max-width: 480px) {
    .pwa-install-banner {
        width: calc(100% - 1.5rem);
        padding: 0.75rem 1rem;
        border-radius: 1rem;
        bottom: 0.75rem;
    }
    
    .pwa-install-icon {
        width: 36px;
        height: 36px;
    }
    
    .pwa-install-icon svg {
        width: 18px;
        height: 18px;
    }
    
    .pwa-install-text strong {
        font-size: 0.85rem;
    }
    
    .pwa-install-text p {
        font-size: 0.7rem;
    }
    
    .pwa-install-btn {
        padding: 0.5rem 1rem;
        font-size: 0.8rem;
    }
    
    .pwa-install-close {
        width: 28px;
        height: 28px;
        font-size: 1rem;
    }
}

/* Landscape mode on mobile */
@media screen and (max-height: 500px) and (orientation: landscape) {
    .pwa-install-banner {
        bottom: 0.5rem;
        padding: 0.5rem 1rem;
    }
    
    .pwa-install-icon {
        width: 32px;
        height: 32px;
    }
    
    .pwa-install-text p {
        display: none;
    }
}

/* Tablet (481px - 768px) */
@media screen and (min-width: 481px) and (max-width: 768px) {
    .pwa-install-banner {
        max-width: 450px;
    }
}

/* Desktop (769px and above) */
@media screen and (min-width: 769px) {
    .pwa-install-banner {
        max-width: 480px;
        bottom: 1.5rem;
    }
    
    .pwa-install-text strong {
        font-size: 1rem;
    }
    
    .pwa-install-text p {
        font-size: 0.8rem;
    }
}

/* ========================================
   DARK MODE SUPPORT
   ======================================== */
@media (prefers-color-scheme: dark) {
    .pwa-install-banner {
        background: rgba(15, 23, 42, 0.98);
        border-color: rgba(255, 255, 255, 0.1);
    }
}

@media (max-width: 640px) {
  /* 1. Make the modal container fill the whole screen */
  #itemDetailsModal {
    padding: 0 !important;
    align-items: stretch !important;
    justify-content: stretch !important;
  }

  /* 2. Make the modal content fill the screen with no rounded corners */
  #itemDetailsModal .modal-content {
    width: 100% !important;
    max-width: 100% !important;
    height: 100% !important;
    max-height: 100% !important;
    margin: 0 !important;
    border-radius: 0 !important;
    overflow-y: auto !important;
    display: flex;
    flex-direction: column;
  }

  /* 4. Reset Tailwind's space-x margin to use gap instead */
   #itemDetailsModal  .flex.space-x-4.mt-6 > * + * {
    margin-left: 0 !important;
  }


}
@media (max-width: 640px) {
    /* Stack the main container items vertically */
    .mobile-container {
        display: flex !important;
        flex-direction: column !important;
        gap: 12px !important; /* Space between top row and bottom button */
        margin-left: 0 !important;
        margin-right: 0 !important;
        width: 100% !important;
    }

    /* Force the top two buttons to stay side-by-side */
    .button-row-top {
        display: flex !important;
        flex-direction: row !important;
        width: 100% !important;
        gap: 12px !important; /* Space between the two top buttons */
    }

    /* Make both top buttons take up equal 50% width */
    .button-row-top button {
        flex: 1 !important;
        width: 50% !important;
        justify-content: center !important; /* Centers text/icons */
        padding: 12px 8px !important; /* Optimizes padding for mobile screen sizes */
        font-size: 14px !important; /* Prevents text wrap */
    }

    /* Make the bottom button long (full width) */
    #makeAdBtn {
        width: 100% !important;
        justify-content: center !important;
        margin-left: 0 !important; /* Clears Tailwind's space-x-4 spacing rules */
        padding: 12px 16px !important;
    }
}
@media (max-width: 640px) {
.quantity-ActionModal{
  width: 100vw;
  height: 100dvh;
  max-width: 100%;
  max-height: 100%;
  margin: 0px;
  border-radius: 0px;
  display: flex;
  flex-direction: column;
}

.qr-GenerationModal{
  width: 100vw;
  height: 100dvh;
  max-width: 100%;
  max-height: 100%;
  margin: 0px;
  border-radius: 0px;
  display: flex;
  flex-direction: column;
}

 
}

@media (min-width: 1024px) {
    .sidebar-toggle{
        display: none !important;
    }

    #qrGenerationModal {
        align-items: center;
        justify-content: center;
              z-index: 20000000000000999999999999999999999999999999;
    }

    #qrGenerationModal > * {
        width: 90%;
        max-width: 1100px;
        border-radius: 20px;
        transform: scale(0.95);
        opacity: 0;
    }

    #qrGenerationModal.show > * {
        transform: scale(1);
        opacity: 1;
    }
     .format-grid-container {
        grid-template-columns: repeat(1, minmax(0, 1fr)) !important;
        gap: 12px !important; /* Slight extra breathing room for stacked items */
    }

    /* Expand labels edge-to-edge inside the vertical stack */
    .format-grid-container label {
        width: 100% !important;
    }
    .SearchItems {
  grid-template-columns: repeat(2, minmax(0px, 1fr));
}
}
   .expenseModal{

 background-color: #000000 !important;
}
@media (max-width: 768px) {
  #customerSearchModal {
    padding: 0;
  }

  .customer-search-panel {
    width: 100vw !important;
    height: 100dvh !important;
    max-height: 100dvh !important;
    border-radius: 0 !important;
    margin: 0 !important;
    display: flex;
    flex-direction: column;
  }

  .modal-body {
    flex-grow: 1;
    overflow-y: auto;
    height: auto; /* Allow flexbox to control height */
  }
  .adminProfileModalcontent{
    width: 100vw !important;
    height: 100dvh !important;
    max-height: 100dvh !important;
    border-radius: 0 !important;
    margin: 0 !important;
    display: flex;
    flex-direction: column;
  }
  .expenseModal{
    width: 100vw !important;
    height: 100dvh !important;
    max-height: 100dvh !important;
    border-radius: 0 !important;
    margin: 0 !important;
    display: flex;
    flex-direction: column;
  }
  #adminPanelBtn {
    display: none !important;
  }

}
@media (max-width: 768px) {
  #historyDetailModal {
    padding: 0;
  }

  .historyDetailModalcontent {
    width: 100vw !important;
    height: 100dvh !important;
    max-height: 100dvh !important;
    border-radius: 0 !important;
    margin: 0 !important;
    display: flex;
    flex-direction: column;
  }
.recordPaymentModal-content{
    width: 100vw !important;
    height: 100dvh !important;
    max-height: 100dvh !important;
    border-radius: 0 !important;
    margin: 0 !important;
    display: flex;
    flex-direction: column;
  }
  .modal-body {
    flex-grow: 1;
    overflow-y: auto;
    height: auto; /* Allow flexbox to control height */
  }
}
@media (max-width: 768px) {
  /* Night Mode Footer Wrapper */
  .night-mode .ct-footer {
    display: flex !important;
    padding: 0.75rem 1rem !important;
    height: auto !important;
    border-top: 1px solid #374151 !important;
    gap: 12px;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.3) !important;
  }

  /* Smart looking primary button for mobile dark mode */
  .night-mode .ct-footer .primary-btn {
    padding: 10px 16px !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    border-radius: 8px !important;
    height: auto !important;
    background-color: #3b82f6 !important; /* Brighter Blue for Dark Mode */
    color: #ffffff !important;
    flex: 1;
    border: none;
  }

  /* Ensure body takes remaining space */
  .night-mode .customer-transactions-panel {
    display: flex;
    flex-direction: column;
  }

  .night-mode .ct-body {
    flex-grow: 1;
    overflow-y: auto;
  }
}


.loadingbit {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    /* Cyberpunk neon cyan to deep purple futuristic gradient pulse */
    background: linear-gradient(
        90deg, 
        rgba(0, 242, 254, 0) 0%, 
        rgba(0, 242, 254, 0.15) 35%, 
        rgba(79, 172, 254, 0.4) 50%, 
        rgba(157, 78, 221, 0.15) 65%, 
        rgba(157, 78, 221, 0) 100%
    );
    /* Futuristic cubic-bezier timing function for a high-tech data sweep effect */
    animation: cyberPulse 2s cubic-bezier(0.25, 1, 0.5, 1) infinite;
    /* Holographic glow overlay */
    box-shadow: 0 0 15px rgba(0, 242, 254, 0.2);
}

@keyframes cyberPulse {
    0% { 
        transform: translateX(-100%) skewX(-15deg); 
        opacity: 0.3;
    }
    50% {
        opacity: 1;
    }
    100% { 
        transform: translateX(100%) skewX(-15deg); 
        opacity: 0.3;
    }
}
@media print {
    /* Hide the entire controls container */
    .sticky.top-0,
    #executePrintBtn,
    #printPreviewMenuBtn,
    #printPreviewMenuDropdown,
    #closePrintPreviewBtn,
    .print-controls-container,
    .mobile-drawer ,.mobile-bottom-nav {
        display: none !important;
    }
    
    
    #receiptModal {
        background-color: #ffffff !important;
   
    }
     #doneEditingBtn,
    #saveReceiptModificationsBtn,
    #printReceiptBtn,
    #downloadPdfBtn,
    #shareReceiptBtn,
    #scrollTopBtn {
        display: none !important;
    }
}


#adminPanelContent {
    z-index: 999999 !important;
    position: relative;
    background-color: rgb(35, 35, 42) !important; /* Match background */
}



/* Fix for the close button */
#closeAdminPanelBtn {
    position: absolute;
    top: 1rem;
    right: 1rem;
    z-index: 1000001;
    color: white !important;
}

/* Clock styling */
.clock-container {
    background-color: rgba(255, 255, 255, 0.1);
    padding: 1rem;
    border-radius: 0.5rem;
    margin: 1rem 0;
}

#currentTime, #currentDate {
    color: white;
    font-weight: bold;
}

/* Responsive width */
@media (max-width: 640px) {

    body.night-mode .managerProfileModal {
  max-height: 90vh;
  overflow-y: auto;
}

#salesProfileModal {
  padding: 1rem;
}
}

/* The backdrop/container */
#salesProfileModal {
  align-items: center;
  justify-content: center;
  padding: 1rem; /* Space around the modal on mobile */
  position: fixed;
  inset: 0;
  z-index: 9999;
  background-color: rgba(0, 0, 0, 0.5); /* Semi-transparent backdrop */
}

/* The actual modal box */
#salesProfileModal > div {
  width: 100%;
  max-width: 56rem; /* Equivalent to max-w-4xl */
  max-height: 90vh; /* Keeps it within the screen height */
  overflow-y: auto; /* Adds a scrollbar if content is too long */
  border-radius: 1rem;
  flex-direction: column;
}
.pwa-install-banner.show {
  bottom: 86px;
  z-index: 2147483647;
  position: fixed;
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 20px);
  max-width: 400px;
}
/* ================================
   LOAN ANALYTICS SECTION STYLES
   ================================ */

/* Base styles - hidden by default */
#loanAnalyticsSection {
    display: none !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 10px !important;
    box-sizing: border-box !important;
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    z-index: 9999 !important;
    background: rgba(0, 0, 0, 0.7) !important;
    backdrop-filter: blur(4px) !important;
}

/* When NOT hidden - show as flex */
#loanAnalyticsSection:not(.hidden) {
    display: flex !important;
}

/* When hidden - hide completely */
#loanAnalyticsSection.hidden {
    display: none !important;
}

/* Inner card styles */
#loanAnalyticsSection .bg-white {
    width: 95% !important;
    max-width: 1200px !important;
    max-height: 90vh !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    padding: 24px !important;
    background: white !important;
    border-radius: 12px !important;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3) !important;
    -webkit-overflow-scrolling: touch !important;
    position: relative !important;
}

/* Chart canvas sizing */
#loanAnalyticsSection canvas {
    max-height: 200px !important;
    width: 100% !important;
}

/* Mobile responsive */
@media (max-width: 768px) {
    #loanAnalyticsSection {
        padding: 5px !important;
        align-items: flex-start !important;
        padding-top: 20px !important;
    }
    
    #loanAnalyticsSection .bg-white {
        width: 100% !important;
        max-width: 100% !important;
        max-height: 85vh !important;
        overflow-y: auto !important;
        overflow-x: hidden !important;
        padding: 15px !important;
        border-radius: 8px !important;
        -webkit-overflow-scrolling: touch !important;
        margin: 10px !important;
    }

    #loanAnalyticsSection .grid.grid-cols-1.md\:grid-cols-2 {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 8px !important;
    }

    #loanAnalyticsSection canvas {
        max-height: 100px !important;
        width: 100% !important;
    }
    
    #loanAnalyticsSection .bg-gray-50 {
        padding: 8px !important;
    }
    
    #loanAnalyticsSection h4 {
        font-size: 12px !important;
    }
}

/* Extra small devices */
@media (max-width: 480px) {
    #loanAnalyticsSection .grid.grid-cols-1.md\:grid-cols-2 {
        grid-template-columns: 1fr !important;
        gap: 10px !important;
    }
    
    #loanAnalyticsSection canvas {
        max-height: 150px !important;
    }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    #loanAnalyticsSection {
        background: rgba(0, 0, 0, 0.85) !important;
    }
    
    #loanAnalyticsSection .bg-white {
        background: #1a1a2e !important;
        color: #e0e0e0 !important;
    }
    
    #loanAnalyticsSection .bg-gray-50 {
        background: #2a2a3e !important;
    }
}
/* Media query for mobile devices */
@media (max-width: 768px) {
    /* Target the parent overlay */
    div#recordRepaymentModal {
        padding: 0 !important;
        align-items: flex-start !important;
        justify-content: flex-start !important;
    }

    /* Make the modal content fill the entire viewport */
    div#recordRepaymentModal .modal-content {
        width: 100vw !important;
        max-width: 100vw !important;
        height: 100vh !important;
        max-height: 100vh !important;
        margin: 0 !important;
        border-radius: 0 !important; /* Sharp corners for full screen feel */
        padding: 1.5rem !important;
        overflow-y: auto !important; /* Ensure content is scrollable if long */
        display: flex;
        flex-direction: column;
    }

    /* Positioning the close button safely */
    .modal-close-btn {
        top: 1rem !important;
        right: 1rem !important;
    }
}
@media (max-width: 768px) {
    /* Target the Repayment History Modal parent */
    div#repaymentHistoryModal {
        padding: 0 !important;
        align-items: flex-start !important;
        justify-content: flex-start !important;
    }

    /* Full screen content */
    div#repaymentHistoryModal .modal-content {
        width: 100vw !important;
        max-width: 100vw !important;
        height: 100vh !important;
        max-height: 100vh !important;
        margin: 0 !important;
        border-radius: 0 !important;
        padding: 1rem !important;
        overflow-y: auto !important;
    }

    /* Ensure table container is clear on small screens */
    div#repaymentHistoryModal .overflow-x-auto {
        margin-top: 1rem;
    }
}
@media (max-width: 640px) {
    /* Force grids to show two items per row */
    #loanManagementSection .grid.grid-cols-1.md\:grid-cols-2.gap-3,
    #loanManagementSection .grid.grid-cols-1.lg\:grid-cols-3.gap-3 {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 0.5rem !important;
    }

    /* Shrink the cards slightly to fit side-by-side */
    #loanManagementSection .bg-white.dark\:bg-gray-800.p-4.rounded-lg.shadow-sm {
        padding: 0.75rem !important;
    }

    /* Adjust typography for the small grid cells */
    #loanManagementSection .text-sm.text-gray-500 {
        font-size: 0.7rem !important;
    }
    #loanManagementSection .text-lg.font-bold {
        font-size: 0.9rem !important;
    }
        /* Force 2-column layout for the main statistics grid */
    #loanManagementSection .grid.grid-cols-1.sm\:grid-cols-2.lg\:grid-cols-4.gap-4.mb-6 {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 0.5rem !important;
    }

    /* Adjust padding for side-by-side status cards */
    #loanManagementSection .grid.grid-cols-1.sm\:grid-cols-2.lg\:grid-cols-4.gap-4.mb-6 .p-4 {
        padding: 0.75rem !important;
    }

    /* Scale down font sizes for the stats numbers and labels */
    #loanManagementSection .grid.grid-cols-1.sm\:grid-cols-2.lg\:grid-cols-4.gap-4.mb-6 .text-2xl {
        font-size: 1.2rem !important;
    }
    
    #loanManagementSection .grid.grid-cols-1.sm\:grid-cols-2.lg\:grid-cols-4.gap-4.mb-6 .text-sm {
        font-size: 0.75rem !important;
    }
}


@media (max-width: 768px) {
  #salesOptionsModal .grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 12px !important;
  }
  
  /* First Button - Indigo */
  #salesOptionsModal .grid > *:nth-child(1) {
    background-color: #4f46e5 !important;
  }
  
  /* Second Button - Sky Blue */
  #salesOptionsModal .grid > *:nth-child(2) {
    background-color: #0ea5e9 !important;
  }
  
  /* Third Button - Full Width underneath */
  #salesOptionsModal .grid > *:nth-child(3) {
    grid-column: span 2 !important;
    background-color: #334155 !important;
  }
  
  #salesOptionsModal .grid > * {
    height: auto !important;
    padding: 20px 10px !important;
    font-size: 0.9rem !important;
  }
}
@media (max-width: 640px) {
  .modal-content.text-white.w-full.max-w-md {
    max-width: 100% !important;
    width: 100% !important;
    height: 100% !important;
    max-height: 100% !important;
    margin: 0 !important;
    border-radius: 0 !important;
  }
  
  #licenseStatusModal {
    padding: 0 !important;
  }
}
@media (max-width: 640px) {
  #allRemindersModal {
    padding: 0 !important;
  }
  
  #allRemindersModal .modal-content {
    width: 100% !important;
    height: 100% !important;
    max-width: 100% !important;
    max-height: 100% !important;
    margin: 0 !important;
    border-radius: 0 !important;
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
  }
    #allRemindersModal .grid.grid-cols-3.gap-4.text-center {
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 0.5rem !important;
  }
  
  #allRemindersModal .grid.grid-cols-3.gap-4.text-center > div {
    padding: 0.5rem 0.25rem !important;
    font-size: 0.8rem !important;
  }
}
@media (max-width: 640px) {
  #reminderModal {
    padding: 0 !important;
  }
  
  #reminderModal .modal-content-selector { /* Targeted via class list provided */
    width: 100% !important;
    height: 100% !important;
    max-width: 100% !important;
    max-height: 100% !important;
    margin: 0 !important;
    border-radius: 0 !important;
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
  }
  
  #reminderModal .p-6.space-y-4 {
    height: calc(100% - 60px) !important; /* Adjust based on header height */
    overflow-y: auto !important;
  }
}
@media (max-width: 640px) {
  #reminderEditModal {
    padding: 0 !important;
  }
  
  #reminderEditModal .modal-content {
    width: 100% !important;
    height: 100% !important;
    max-width: 100% !important;
    max-height: 100% !important;
    margin: 0 !important;
    border-radius: 0 !important;
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    overflow-y: auto !important;
  }
}
@media (max-width: 640px) {
  #taskModal {
    padding: 0 !important;
  }
  
  #taskModal .modal-content {
    width: 100% !important;
    height: 100% !important;
    max-width: 100% !important;
    max-height: 100% !important;
    margin: 0 !important;
    border-radius: 0 !important;
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    overflow-y: auto !important;
  }
}
/* Full-screen modals on mobile devices */
@media (max-width: 640px) {
  #makeadminsection, 
  #taskModal, 
  #reminderModal, 
  #reminderEditModal, 
  #allRemindersModal, 
  #licenseStatusModal {
    padding: 0 !important;
  }
  
  #makeadminsection > div, 
  #taskModal .modal-content, 
  #reminderModal .bg-white, 
  #reminderEditModal .modal-content, 
  #allRemindersModal .modal-content, 
  #licenseStatusModal .modal-content {
    width: 100% !important;
    height: 100% !important;
    max-width: 100% !important;
    max-height: 100% !important;
    margin: 0 !important;
    border-radius: 0 !important;
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
  }
}

.inof-sec {
  text-align: left;
}

/* styles/adptive.css */
/* =====================================
   GLOBAL ADAPTIVE MODAL SYSTEM
===================================== */

.reciptmoadl {
    display: flex;
    z-index: 9999999999999999999999999999999999999999999;
    transition: opacity 0.3s ease;
}

/* Default modal panel safety */
.reciptmoadl > * {
    max-height: 90vh;
    overflow-y: auto;
    transition: transform 0.35s ease, opacity 0.35s ease;
}
.retry-btn {
    background: #3b82f6;
    color: white;
    border: none;
    padding: 10px 30px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: background 0.2s;
}

.retry-btn:hover {
    background: #2563eb;
}

.connection-error {
    text-align: center;
    padding: 20px;
    max-width: 400px;
    margin: 0 auto;
}
/* ===============================
   PHONE → BOTTOM SHEET
================================ */
@media (max-width: 767px) {
    .reciptmoadl {
        align-items: flex-end;
        justify-content: center;
    }

    .reciptmoadl > * {
        width: 100%;
        max-width: 100%;
        border-radius: 20px 20px 0 0;
        transform: translateY(100%);
    }

    .reciptmoadl.show > * {
        transform: translateY(0);
    }
}

/* ===============================
   TABLET → CENTERED (FIXED!)
================================ */
@media (min-width: 768px) and (max-width: 1023px) {
    .reciptmoadl {
        align-items: center;
        justify-content: center;
    }

    .reciptmoadl > * {
        width: 92%;
        max-width: 960px;
        border-radius: 20px;
        transform: scale(0.96);
        opacity: 0;
    }

    .reciptmoadl.show > * {
        transform: scale(1);
        opacity: 1;
    }
}

/* ===============================
   DESKTOP → CENTERED
================================ */
@media (min-width: 1024px) {
    .reciptmoadl {
        align-items: center;
        justify-content: center;
    }

    .reciptmoadl > * {
        width: 90%;
        max-width: 1100px;
        border-radius: 20px;
        transform: scale(0.95);
        opacity: 0;
    }

    .reciptmoadl.show > * {
        transform: scale(1);
        opacity: 1;
    }
}
/* =====================================
   GLOBAL ADAPTIVE MODAL SYSTEM
===================================== */

.adaptive-modal {
    display: flex;
    transition: opacity 0.3s ease;
             z-index: 20000000000000999999999999999999999999999999;
}

/* Default modal panel safety */
.adaptive-modal > * {
    max-height: 90vh;
    overflow-y: auto;
    transition: transform 0.35s ease, opacity 0.35s ease;
        z-index: 20000000000000999999999999999999999999999999;
}

/* ===============================
   PHONE → BOTTOM SHEET
================================ */
@media (max-width: 767px) {
    .adaptive-modal {
        width: 100vw;
        height: 100dvh;
        justify-content: center;
              z-index: 20000000000000999999999999999999999999999999;
    }

    .adaptive-modal > * {
        width: 100%;
        max-width: 100%;
        border-radius: 20px 20px 0 0;
        transform: translateY(100%);
    }

    .adaptive-modal.show > * {
        transform: translateY(0);
    }
}

/* ===============================
   TABLET → CENTERED (FIXED!)
================================ */
@media (min-width: 768px) and (max-width: 1023px) {
    .adaptive-modal {
        align-items: center;
        justify-content: center;
              z-index: 20000000000000999999999999999999999999999999;
    }

    .adaptive-modal > * {
        width: 92%;
        max-width: 960px;
        border-radius: 20px;
        transform: scale(0.96);
        opacity: 0;
    }

    .adaptive-modal.show > * {
        transform: scale(1);
        opacity: 1;
    }
}

/* ===============================
   DESKTOP → CENTERED
================================ */
@media (min-width: 1024px) {
    .adaptive-modal {
        align-items: center;
        justify-content: center;
              z-index: 20000000000000999999999999999999999999999999;
    }

    .adaptive-modal > * {
        width: 90%;
        max-width: 1100px;
        border-radius: 20px;
        transform: scale(0.95);
        opacity: 0;
    }

    .adaptive-modal.show > * {
        transform: scale(1);
        opacity: 1;
    }
}
/* ===========================
   REFUND MODAL PANEL
=========================== */
.refund-modal-panel {
    position: relative;

    width: 100%;
    max-width: 520px;

    background: white;
    padding: 1.25rem;
    border-radius: 20px;

    max-height: 85vh;
    overflow-y: auto;
}

/* Close button safe for all modes */
.refund-modal-panel .modal-close-btn {
    position: sticky;
    top: 0;
    float: right;

    font-size: 28px;
    line-height: 1;
    color: #666;
    background: none;
    border: none;
    cursor: pointer;
}

/* ===========================
   TABLET FIX (CENTERED)
=========================== */
@media (min-width: 768px) and (max-width: 1023px) {
    .refund-modal-panel {
        max-width: 680px;
    }
}

/* ===========================
   MOBILE → BOTTOM SHEET
=========================== */
@media (max-width: 767px) {
    .refund-modal-panel {
        width: 100%;
        max-width: 100%;
        border-radius: 20px 20px 0 0;
        padding-bottom: 1.5rem;
    }
}


/* ===============================
   CUSTOMER SEARCH MODAL PANEL
=============================== */
.customer-search-panel {
 background: rgba(0, 0, 0, 0.4);
    width: 100%;
    max-width: 720px;
    max-height: 85vh;
    display: flex;
    flex-direction: column;
    border-radius: 20px;
    overflow: hidden;
}

/* Header */
.customer-search-panel .modal-header {

    padding: 1.25rem;
}

.customer-search-panel .subtitle {
    font-size: 0.9rem;
    opacity: 0.85;
}

/* Body */
.customer-search-panel .modal-body {
    padding: 1.25rem;
    overflow-y: auto;
}

/* Search */
.search-input {
    width: 100%;
    padding: 0.75rem 1rem 0.75rem 2.75rem;
    border: 1px solid #ddd;
    border-radius: 10px;
}

.search-icon {
    position: absolute;
    left: 0.75rem;
    top: 0.7rem;
    opacity: 0.5;
}

.clear-btn {
    position: absolute;
    right: 0.75rem;
    top: 0.6rem;
    background: none;
    border: none;
    cursor: pointer;
    opacity: 0.6;
}

/* Results */
.results-area {
    max-height: 40vh;
    overflow-y: auto;
}

/* Scan section */
.scan-area {
    margin-top: 1.5rem;
    text-align: center;
}

.scan-btn {
    background: #2563eb;
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 12px;
}

.scan-desc {
    font-size: 0.85rem;
    color: #666;
    margin-top: 0.5rem;
}

/* ===============================
   MOBILE → BOTTOM SHEET
=============================== */
@media (max-width: 767px) {
    .customer-search-panel {
        width: 100%;
        max-width: 100%;
        border-radius: 20px 20px 0 0;
    }
}
/* ===============================
   CUSTOMER TRANSACTIONS MODAL
=============================== */
.customer-transactions-panel {
    background: rgba(0, 0, 0, 0.4);
    width: 100%;
    max-width: 1100px;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    border-radius: 20px;
    overflow: hidden;
}

/* Header */
.ct-header {
    background: rgba(0, 0, 0, 0.4);

    padding: 1.25rem;
}

/* Summary */
.summary-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.75rem;
    margin-top: 1rem;
}

.summary-card {
    padding: 0.75rem;
    border-radius: 12px;
    font-size: 0.85rem;
}
.summary-card strong {
    display: block;
    font-size: 1.2rem;
}

/* Body */
.ct-body {
    padding: 1rem;
    overflow-y: auto;
}

/* Filters */
.filters {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-bottom: 0.75rem;
}
.filters select,
.filters input {
    padding: 0.5rem;
    border-radius: 8px;
    border: 1px solid #ddd;
}

/* Table */
.table-wrapper {
    overflow-x: auto;
}
.table-wrapper table {
    width: 100%;
    border-collapse: collapse;
}
.table-wrapper th,
.table-wrapper td {
    padding: 0.5rem;
    font-size: 0.85rem;
    border-bottom: 1px solid #eee;
}
.table-header th {
    color: black;
}
/* Footer */
.ct-footer {
    padding: 0.75rem 1rem;
    border-top: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Buttons */
.primary-btn { background:#2563eb;color:#fff;padding:.5rem 1rem;border-radius:8px; }
.secondary-btn { background:#e5e7eb;padding:.5rem 1rem;border-radius:8px; }
.accent-btn { background:#7c3aed;color:#fff;padding:.5rem 1rem;border-radius:8px; }

/* ===============================
   MOBILE BOTTOM SHEET
=============================== */
@media (max-width: 768px) {
    .customer-transactions-panel {
        max-width: 100%;
        border-radius: 20px 20px 0 0;
    }

    .summary-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
/* Add to your CSS file */
#notificationLoadingOverlay {
    transition: opacity 0.3s ease;
}

.animate-spin {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

@media (max-width: 1024px) {
  #makeadminsection > div {
    width: 95vw;
    max-width: 95vw;
    max-height: 90vh;
  }
}
@media (max-width: 1024px) {
  #makeadminsection .flex.flex-1 {
    flex-direction: column;
  }

  #makeadminsection .w-64 {
    width: 100%;
    display: flex;
    overflow-x: auto;
    gap: 8px;
  }

  #makeadminsection .w-64 button {
    flex: 1;
    white-space: nowrap;
  }
}
#makeadminsection {
  align-items: center !important;
  justify-content: center !important;
}
#makeadminsection > div {
  overflow: hidden;
}
@media (max-width: 640px) {
  #makeadminsection {
    padding: 0 !important;
    margin: 0 !important;
  }
  
  #makeadminsection > .bg-white.dark\\:bg-slate-900 {
    width: 100% !important;
    height: 100% !important;
    max-width: 100% !important;
    max-height: 100% !important;
    border-radius: 0 !important;
    border: none !important;
  }
}

#adminModalContent {
  overflow-y: auto;
}
.flash-green-animate {
    animation: flashGreen 2s ease-in-out;
}

@keyframes flashGreen {
    0%, 100% { background-color: transparent; }
    50% { background-color: rgba(34, 197, 94, 0.3); }
}


/* Add to your existing CSS */
#reminderList li:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

#reminderEditModal input:focus, 
#reminderEditModal textarea:focus, 
#reminderEditModal select:focus {
    border-color: #3b82f6;
    outline: 2px solid #3b82f6;
}

.edit-btn:hover {
    background-color: rgba(59, 130, 246, 0.1);
}

.filter-tab-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;

    padding: 10px 14px;
    font-weight: 600;
    font-size: 14px;

    border-radius: 10px;
    color: #374151; /* gray-700 */
    background: transparent;

    transition: all 0.2s ease;
}

.dark .filter-tab-btn {
    color: #e5e7eb; /* gray-200 */
}

.filter-tab-btn:hover {
    background: rgba(59, 130, 246, 0.12);
}

.filter-tab-btn.active {
    background: #2563eb; /* blue-600 */
    color: white;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

.filter-tab-btn .badge {
    min-width: 22px;
    padding: 2px 8px;
    font-size: 12px;
    font-weight: 700;

    border-radius: 999px;
    background: #e5e7eb;
    color: #374151;
}

.filter-tab-btn.active .badge {
    background: rgba(255, 255, 255, 0.2);
    color: white;
}
.filter-tab-btn {
    transition: background 0.25s ease, transform 0.15s ease;
}

.filter-tab-btn.active {
    transform: scale(1.02);
}
.modal-overlay {
    overscroll-behavior: contain;
}

.modal-content {
    max-height: 90vh;
}

@media (max-width: 768px) {
    .modal-content {
        width: 95%;
    }
}
/* Main Content Container - Responsive */
#mainContentContainer {
    /* Base styles */
    width: 100%;
    min-height: 100vh;
    
    /* Flexible layout */
  
    flex-direction: column;
    
    /* Spacing */
    padding: 1rem;
    

    
    /* Transition for smooth resizing */
    transition: all 0.3s ease;
    
    /* Box sizing */
    box-sizing: border-box;
}

/* Content wrapper inside */
.main-content-wrapper {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    flex: 1;
}

/* ========================================
   RESPONSIVE BREAKPOINTS
   ======================================== */

/* Large Desktops (1400px and above) */
@media screen and (min-width: 1400px) {
    #mainContentContainer {
        padding: 2rem;
        max-width: 1600px;
        margin: 0 auto;
         flex: 1;
    }
}

/* Desktops (1024px - 1399px) */
@media screen and (min-width: 1024px) and (max-width: 1399px) {
    #mainContentContainer {
        padding: 1.5rem;
    }
}

/* Tablets Landscape (768px - 1023px) */
@media screen and (min-width: 768px) and (max-width: 1023px) {
    #mainContentContainer {
        padding: 1.25rem;
    }
}
@media screen and (max-width: 768px) {
  #loginLoadingContainer {
    flex-direction: column; /* Stack text and icon vertically */
    padding: 2rem;
  }

  #loginLoadingContainer h1.liquid-text {
    font-size: 10vw; /* Scale font based on screen width */
    text-align: center;
    margin-bottom: 2rem;
    width: 100%;
    word-wrap: break-word;
  }

  #loginLoadingContainer svg {
    width: 60px; /* Smaller icon for mobile */
    height: auto;
  }
}

/* --- Desktop Styles (Screens larger than 768px) --- */
@media screen and (min-width: 769px) {
  #loginLoadingContainer {
    flex-direction: row; /* Horizontal layout */
  }

  #loginLoadingContainer h1.liquid-text {
    font-size: 120px; /* Original large font */
    margin-right: 2rem;
  }

  #loginLoadingContainer svg {
    width: 100px;
  }
}
/* Mobile: Full Screen */
@media (max-width: 640px) {
  #notifDropdown {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100vw;
    height: 100vh;
    max-width: 100%;
    max-height: 100%;
    margin: 0;
    border-radius: 0;
    z-index: 9999;
    overflow-y: auto;
  }

}

/* Desktop: Dropdown style */
@media (min-width: 641px) {
  #notifDropdown {
    position: fixed;
    top: 4rem;
    right: 1rem;
    width: 24rem;
    max-height: 500px;
    border-radius: 0.5rem;
    /* ... other styles */
  }
}
/* Tablets Portrait (480px - 767px) */
@media screen and (min-width: 480px) and (max-width: 767px) {
    #mainContentContainer {
        padding: 1rem;
    }
}

/* Mobile Phones (320px - 479px) */
@media screen and (min-width: 320px) and (max-width: 479px) {
    #mainContentContainer {
        padding: 0.75rem;

    }
}

/* Small Phones (below 320px) */
@media screen and (max-width: 319px) {
    #mainContentContainer {
        padding: 0.5rem;
    }
}

/* ========================================
   LANDSCAPE MODE ON MOBILE
   ======================================== */
@media screen and (max-height: 500px) and (orientation: landscape) {
    #mainContentContainer {
     
        padding: 0.5rem 1rem;
    }
}

/* ========================================
   FLEXIBLE GRID FOR CHILDREN
   ======================================== */
#mainContentContainer .grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1rem;
}

/* Responsive font sizes */
@media screen and (max-width: 768px) {
    #mainContentContainer {
        font-size: 14px;
    }
}

@media screen and (max-width: 480px) {
    #mainContentContainer {
        font-size: 13px;
    }
}

/* ========================================
   HOME OVERLAY - FULL RESPONSIVE FIX
   ======================================== */




/* Responsive padding */
@media screen and (min-width: 640px) {
    #homeOverlay .relative.z-10 {
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }
}

@media screen and (min-width: 1024px) {
    #homeOverlay .relative.z-10 {
        padding-left: 2rem;
        padding-right: 2rem;
    }
}

/* Centered Content */
#homeOverlay .text-center {
    text-align: center;
    max-width: 56rem;
    margin-left: auto;
    margin-right: auto;
    width: 100%;
}

/* Main Heading */
.stock-app-text {
    background: linear-gradient(135deg, #3b82f6, #8b5cf6, #ec4899);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    animation: gradientShift 8s ease infinite;
    background-size: 200% 200%;
}

/* Responsive text sizes */
@media screen and (max-width: 640px) {
    .stock-app-text {
        font-size: 2.5rem !important;
    }
}

@media screen and (min-width: 641px) and (max-width: 768px) {
    .stock-app-text {
        font-size: 3.5rem !important;
    }
}

@media screen and (min-width: 769px) and (max-width: 1024px) {
    .stock-app-text {
        font-size: 5rem !important;
    }
}

@media screen and (min-width: 1025px) {
    .stock-app-text {
        font-size: 6rem !important;
    }
}

/* Subtitle */
#homeOverlay span[data-translate="welcomeSubtitle"] {
    display: inline-block;
    font-size: 1rem;
    color: #cbd5e1;
    margin-top: 0.5rem;
}

@media screen and (min-width: 640px) {
    #homeOverlay span[data-translate="welcomeSubtitle"] {
        font-size: 1.125rem;
    }
}

@media screen and (min-width: 768px) {
    #homeOverlay span[data-translate="welcomeSubtitle"] {
        font-size: 1.25rem;
    }
}

/* Footer - Fixed at bottom */
#homeOverlay footer {
    position: absolute;
    bottom: 1.5rem;
    left: 0;
    right: 0;
    text-align: center;
    z-index: 20;
}

@media screen and (max-width: 640px) {
    #homeOverlay footer {
        bottom: 0.75rem;
    }
}

/* Copyright text */
#homeOverlay footer p {
    font-size: 0.75rem;
    color: #94a3b8;
}

@media screen and (min-width: 640px) {
    #homeOverlay footer p {
        font-size: 0.875rem;
    }
}


/* ========================================
   ANIMATIONS
   ======================================== */

@keyframes float {
    0%, 100% {
        transform: translate(0, 0) rotate(0deg);
    }
    33% {
        transform: translate(30px, -30px) rotate(5deg);
    }
    66% {
        transform: translate(-20px, 20px) rotate(-3deg);
    }
}

@keyframes gradientShift {
    0%, 100% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
}

/* ========================================
   RESPONSIVE LANDSCAPE MODE
   ======================================== */

@media screen and (max-height: 600px) and (orientation: landscape) {
    #homeOverlay .relative.z-10 {
        min-height: auto;
        padding: 2rem 1rem;
    }
    
    #homeOverlay footer {
        position: relative;
        margin-top: 1rem;
    }
}

/* ========================================
   EXTRA SMALL DEVICES
   ======================================== */

@media screen and (max-width: 480px) {
    #homeOverlay .blob-1 {
        width: 150px;
        height: 150px;
        top: -50px;
        left: -50px;
    }
    
    #homeOverlay .blob-2 {
        width: 200px;
        height: 200px;
        bottom: -80px;
        right: -80px;
    }
}

/* --- FULL MOBILE RESPONSIVE CSS --- */
@media screen and (max-width: 640px) {
    /* 1. Modal Overlay & Bottom Sheet Layout */
    #moreInfoModal {
        display: flex !important;
        align-items: flex-end !important;
    
    }

    #moreInfoModal .moreinfo-container {
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 !important;
        border-radius: 30px 30px 0 0 !important;
        max-height: 95vh !important;
        animation: modalSlideUp 0.5s cubic-bezier(0.22, 1, 0.36, 1);
    
   
        border: 1px solid rgba(255, 255, 255, 0.3);
    }

    .dark #moreInfoModal .moreinfo-container {
  
        border-color: rgba(255, 255, 255, 0.1);
    }

    /* 2. Glassmorphic Header & Stacked Layout */
    #moreInfoModal .moreinfo-container > div:first-child {
  
        backdrop-filter: blur(15px) brightness(1.1) !important;
        padding: 1.25rem 1rem !important;
    }

    /* Stack header content: controls move UNDER text */
    #moreInfoModal .moreinfo-container > div:first-child .flex.justify-between {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 1rem !important;
    }

    /* 3. Text Straight Line (No Wrap) */
    #moreInfoTitle, 
    #moreInfoSubtitle {
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
        display: block !important;
        width: 100% !important;
    }

    /* 4. Stats: 2x2 Grid */
    #moreInfoModal .statsgrid {
        display: grid !important;
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 0.75rem !important;
    }

    /* 5. Graph Area */
    #moreInfoModal .h-80 {
        height: 250px !important;
   
        border-radius: 16px;
    }

    /* 6. Footer (Glassmorphic) */
    #moreInfoModal .sticky.bottom-0 {

        backdrop-filter: blur(15px) !important;
        display: flex !important;
        flex-direction: column-reverse !important;
        gap: 0.75rem !important;
    }

    #moreInfoModal .sticky.bottom-0 button {
        width: 100% !important;
        height: 48px !important;
        border-radius: 12px !important;
    }
}

@keyframes modalSlideUp {
    from { transform: translateY(100%); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}
#profitLossSection {
  padding-left: 0px;
  padding-right: 0px;
  margin-left: 0px;
  margin-right: 0px;
  width: 100%;
  max-width: none;
}
@media (max-width: 640px) {

#stock-history-section {

.items-end {
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  width: 100%;
  max-width: 100%;
}

div {
  margin-left: 0px;
  flex: 1 1 140px;
  min-width: 120px;
  margin: 0px;
  width: auto;
}

.space-x-4>:not([hidden])~:not([hidden]) {
  margin-left: 0px;
  flex: 1 1 140px;
  min-width: 120px;
  margin: 0px;
  width: auto;
}

.space-x-4>:not([hidden])~:not([hidden]) {
  margin-left: 0px;
  flex: 1 1 140px;
  min-width: 120px;
  margin: 0px;
  width: auto;
}

.space-x-4>:not([hidden])~:not([hidden]) {
  margin-left: 0px;
  flex: 1 1 140px;
  min-width: 120px;
  margin: 0px;
  width: auto;
}

.space-x-4>:not([hidden])~:not([hidden]) {
  margin-left: 0px;
  flex: 1 1 140px;
  min-width: 120px;
  margin: 0px;
  width: auto;
}

}
#profitLossSection {
  padding-left: 0px;
  padding-right: 0px;
  margin-left: 0px;
  margin-right: 0px;
  width: 100%;
  max-width: none;
}
#profitLossSection {
.px-4 {
  padding-left: 0px;
  padding-right: 0px;
  margin-left: 0px;
  margin-right: 0px;
  max-width: 100%;
  width: 100%;
}



body.night-mode .bg-white-800 {
  width: 100%;
  max-width: none;
  margin-left: 0px;
  margin-right: 0px;
  padding-left: 10px;
  padding-right: 10px;
  border-radius: 0px;
}
.gap-6 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
}

.p-6 {
  padding: 1rem;
  min-height: 120px;
}

.p-6 {
  padding: 1rem;
  min-height: 120px;
}

.p-6 {
  padding: 1rem;
  min-height: 120px;
}

.p-6 {
  padding: 1rem;
  min-height: 120px;
}

.p-6 {
  padding: 1rem;
  min-height: 120px;
}

.p-6 {
  padding: 1rem;
  min-height: 120px;
}

body.night-mode .bg-white-800 {
  width: 98%;
  max-width: none;
  padding-left: 12px;
  padding-right: 12px;
  margin-left: auto;
  margin-right: auto;
}

.px-4 {
  padding-left: 8px;
  padding-right: 8px;
  max-width: 100%;
}
}
}
@media (max-width: 640px) {
  /* 1. Force the page wrapper to be full width */
  .w-full.mx-auto.px-4.sm\:px-6.lg\:px-8 {
    padding-left: 0px !important;
    padding-right: 0px !important;
    width: 100% !important;
    max-width: 100% !important;
  }

  /* 2. Remove all margins and padding from the section */
  #profitLossSection {
    padding-left: 0px !important;
    padding-right: 0px !important;
    margin: 0px !important;
    width: 100% !important;
  }

  /* 3. Make the white card container edge-to-edge */
  #profitLossSection .container {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0px !important;
    border-radius: 0px !important;
    padding-left: 10px !important;
    padding-right: 10px !important;
  }

  /* 4. Force the 2x2 grid for cards */
  #profitLossSection .grid {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 8px !important;
  }

  /* 5. Adjust card padding so they fit 2x2 */
  #profitLossSection .summary-card {
    padding: 12px !important;
    min-height: 100px !important;
  }
}
@media (max-width: 640px) {
  /* ===== SECTION CONTAINER ===== */
  #monthlySalesSection {
    padding: 1.5rem 1rem !important;
  }

  /* ===== HEADER ===== */
  #monthlySalesSection h2 {
    font-size: 1.75rem !important;
    font-weight: 900 !important;
    text-align: left !important;
    letter-spacing: -0.05em !important;
    margin-bottom: 2rem !important;
    background: linear-gradient(to right, #ffffff, rgba(255, 255, 255, 0.5));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
  }

  /* ===== TARGET MANAGEMENT CARD (Glassmorphism) ===== */
  #monthlySalesSection .mb-4.flex.flex-col.space-y-2 {
    background: linear-gradient(135deg, rgba(255,255,255,0.1), rgba(255,255,255,0.02)) !important;
    backdrop-filter: blur(10px) !important;
    padding: 1.25rem !important;
    border-radius: 1rem !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.2) !important;
    margin: 0 0 2rem 0 !important;
    width: auto !important;
  }

  /* Labels */
  #monthlySalesSection .mb-4.flex.flex-col.space-y-2 label {
    font-size: 0.7rem !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.05em !important;
    color: rgba(255, 255, 255, 0.5) !important;
    margin-bottom: 0.5rem !important;
  }

  /* Input rows - stacked */
  #monthlySalesSection .mb-4.flex.flex-col.space-y-2 .flex.items-center.space-x-2 {
    flex-direction: column !important;
    align-items: stretch !important;
    margin-bottom: 1.25rem !important;
  }

  /* Input fields */
  #monthlySalesSection input {
    width: 100% !important;
    background: rgba(0, 0, 0, 0.4) !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    border-radius: 2px !important;
    height: 2.5rem !important;
    color: white !important;
    margin-bottom: 0.75rem !important;
  }

  /* Apply Filter button */
  #applyMonthlySalesFilterBtn {
    background: #475569 !important;
    height: 2.5rem !important;
    border-radius: 2px !important;
    font-size: 0.8rem !important;
    font-weight: 600 !important;
    text-transform: uppercase !important;
    width: 100% !important;
  }

  /* Set Target button */
  #monthlySalesSection button.bg-blue-600 {
    width: 100% !important;
    height: 2.5rem !important;
    background: #2563eb !important;
    border-radius: 2px !important;
    font-weight: 700 !important;
    color: white !important;
  }

  /* ===== INSIGHTS GRID (2-column) ===== */
  #monthlySalesInsights {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 0.75rem !important;
  }

  /* Chart card - full width */
  #monthlySalesInsights > div:nth-child(2) {
    grid-column: span 2 !important;
  }

  #monthlySalesInsights > div {
    background: rgba(255, 255, 255, 0.03) !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    border-radius: 1rem !important;
    padding: 1rem !important;
  }

  #monthlyAvgSaleValue {
    font-size: 1.25rem !important;
    font-weight: 700 !important;
  }

  /* ===== ACTION BUTTONS (Print/Export) ===== */
  #monthlySalesSection .mt-4.flex.justify-end {
    display: flex !important;
    flex-direction: column !important;
    gap: 0.75rem !important;
    margin-top: 2.5rem !important;
  }

  #monthlySalesSection .mt-4.flex.justify-end button {
    height: 3.5rem !important;
    border-radius: 1rem !important;
    font-weight: 800 !important;
    text-transform: uppercase !important;
  }

  /* Print button */
  #monthlySalesSection .mt-4.flex.justify-end button:first-child {
    background: #ffffff !important;
    color: #000000 !important;
  }

  /* Export button */
  #monthlySalesSection .mt-4.flex.justify-end button:last-child {
    background: transparent !important;
    border: 2px solid rgba(255, 255, 255, 0.2) !important;
    color: #ffffff !important;
    margin-left: 0 !important;
  }
}
@media screen and (max-width: 768px) {
  #weeklySalesSection {
    flex-direction: column !important;
    padding: 10px !important;
  }
}
@media only screen and (max-width: 767px) {
  #allTasksModal .gap-8 {
    gap: 2rem;
    display: grid;
    flex-direction: column;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    width: 100%;
    max-width: 1000px;
    margin: 0px auto;
  }

  #allTasksModal .p-6 {
    padding: 0px;
    margin-bottom: 2rem;
    background: transparent;
    text-align: center;
    font-size: 1.5rem;
    font-weight: bold;
  }

  #allTasksModal .space-y-6 > :not([hidden]) ~ :not([hidden]) {
    padding: 1rem;
    margin-bottom: 0.75rem;
  }

  #allTasksModal .p-6 {
    padding: 1rem;
    margin-bottom: 0.75rem;
    width: 180px;
    height: 180px;
    border-radius: 50%;
    overflow: hidden;
    border: 4px solid rgb(255, 255, 255);
    box-shadow: rgba(0, 0, 0, 0.15) 0px 10px 25px;
    margin: 0px auto;
    border-width: 6px;
  }

  #allTasksModal .space-y-6 {
    display: grid;
    flex-direction: column;
    align-items: center;
    margin-bottom: 2.5rem;
    background: none;
    padding: 0px;
    width: 100%;
    grid-template-columns: 1fr;
    gap: 1rem;
    margin-top: 1rem;
  }

  #allTasksModal .space-y-6 {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  #allTasksModal .modal-overlay {
    display: flex;
    position: fixed;
    top: 0px;
    left: 0px;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    justify-content: center;
    align-items: center;
    z-index: 9999;
  }

  body.night-mode #allTasksModal .bg-white {
    width: 95%;
    max-width: none;
    height: 90vh;
    margin: auto;
    border-radius: 20px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
  }

  #allTasksModal .border-b {
    padding: 1.5rem;
    border-bottom: 1px solid rgb(238, 238, 238);
  }

  #allTasksModal .overflow-y-auto {
    padding: 1rem;
    flex: 1 1 0%;
    overflow-y: auto;
  }
}


@media only screen and (max-width: 767px) {
  .sales-history .grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
    align-items: start;
    width: 100%;
  }

  .sales-history .grid > div:nth-child(1) {
    grid-column: span 1;
  }

  .sales-history .grid > div:nth-child(2) {
    grid-column: span 1;
  }

  .sales-history .grid > div:nth-child(3) {
    grid-column: span 1;
  }

  .sales-history .grid > div:nth-child(4) {
    grid-column: span 1;
  }

  .sales-history .grid > div:nth-child(5) {
    grid-column: span 2;
  }

  .sales-history label {
    display: block;
    font-size: 0.75rem;
    margin-bottom: 0.25rem;
  }

  .sales-history input,
  .sales-history select {
    width: 100%;
    padding: 0.5rem;
    font-size: 14px;
    border: 1px solid #d1d5db;
    border-radius: 0.375rem;
    box-sizing: border-box;
  }

  .sales-history button {
    width: 100%;
    padding: 0.5rem 1rem;
    font-size: 14px;
  }

  body.night-mode .sales-history {
    background-color: #1f2937;
    border-color: #374151;
  }

  body.night-mode .sales-history label {
    color: #d1d5db;
  }

  body.night-mode .sales-history input,
  body.night-mode .sales-history select {
    background-color: #374151;
    border-color: #4b5563;
    color: #f3f4f6;
  }
}


@media (max-width: 767px) {
#SecondaryActions {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 0.75rem !important;
    width: 100% !important;
}

#SecondaryActions button {
    width: 100% !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    font-size: 0.875rem !important;
}


.sales-history .grid {
  width: 100%;
  max-width: 100%;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  justify-items: center;
  align-items: end;
  justify-content: center;
  margin: 0px auto;
}

.sales-history .grid > div:nth-child(1) {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}

.sales-history .grid > div:nth-child(2) {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}

.sales-history .grid > div:nth-child(3) {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}

.sales-history .grid > div:nth-child(4) {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}

.sales-history .grid > div:nth-child(5) {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}


}
/* Desktop (768px and above) */
@media only screen and (min-width: 768px) {
    .mb-4.flex.items-center {
        display: flex;
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        flex-wrap: wrap;
    }
    
    .mb-4.flex.items-center h2 {
        flex: 1;
    }
}

/* Mobile (767px and below) */
@media only screen and (max-width: 767px) {
    .mb-4.flex.items-center {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        width: 100%;
    }
    
    .mb-4.flex.items-center h2 {
        width: 100%;
    }
    
    .mb-4.flex.items-center .expenses-wrapper {
        width: 100%;
    }
}


@media only screen and (max-width: 767px) {
  #refundHistoryModal .modal-overlay {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0px;
    background: rgba(0, 0, 0, 0.6);
  }

  #refundHistoryModal.refund-adaptive.show .dmodal-content {
    width: 100%;
    height: 100%;
    max-width: 100vw;
    max-height: 100vh;
    border-radius: 0px;
    margin: 0px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
  }

  #refundHistoryModal .overflow-x-auto {
    flex: 1 1 0%;
    max-height: none;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  #refundHistoryModal button.modal-close-btn {
    position: absolute;
    top: 1rem;
    right: 1rem;
    z-index: 10;
    padding: 0.5rem;
  }
}
@media only screen and (max-width: 767px) {
    #refundHistoryModal .mb-4.flex.space-x-4.items-end {
        display: grid !important;
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 0.75rem !important;
        align-items: center !important;
    }
    
    #refundHistoryModal .mb-4.flex.space-x-4.items-end > div {
        width: 100% !important;
    }
    
    #refundHistoryModal .mb-4.flex.space-x-4.items-end > div:nth-child(1),
    #refundHistoryModal .mb-4.flex.space-x-4.items-end > div:nth-child(2),
    #refundHistoryModal .mb-4.flex.space-x-4.items-end > button:nth-child(3),
    #refundHistoryModal .mb-4.flex.space-x-4.items-end > button:nth-child(4) {
        width: 100% !important;
        margin: 0 !important;
    }
    
    #refundHistoryModal .mb-4.flex.space-x-4.items-end > button:nth-child(3),
    #refundHistoryModal .mb-4.flex.space-x-4.items-end > button:nth-child(4) {
        margin-left: 0 !important;
    }
    
    #refundHistoryModal .mb-4.flex.space-x-4.items-end input,
    #refundHistoryModal .mb-4.flex.space-x-4.items-end button {
        width: 100% !important;
    }
}



/* Supermarket Mode Styles */
.supermarket-container {
    animation: slideUp 0.3s ease-out;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.product-card {
    transition: all 0.2s ease;
}

.product-card:active {
    transform: scale(0.98);
}

/* Custom scrollbar for supermarket mode */
.supermarket-container ::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

.supermarket-container ::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.supermarket-container ::-webkit-scrollbar-thumb {
    background: #c084fc;
    border-radius: 10px;
}

.supermarket-container ::-webkit-scrollbar-thumb:hover {
    background: #a855f7;
}

/* Toggle switch */
.toggle-switch {
    width: 44px;
    height: 24px;
    background-color: #ddd;
    border-radius: 12px;
    position: relative;
    cursor: pointer;
    appearance: none;
    transition: background-color 0.3s;
}

.toggle-switch:checked {
    background-color: #a855f7;
}

.toggle-switch::before {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    background-color: white;
    border-radius: 50%;
    top: 2px;
    left: 2px;
    transition: transform 0.3s;
}

.toggle-switch:checked::before {
    transform: translateX(20px);
}

/* Dark mode adjustments */
.dark .supermarket-container ::-webkit-scrollbar-track {
    background: #1f2937;
}

.dark .supermarket-container ::-webkit-scrollbar-thumb {
    background: #6b21a5;
}


/* HIDE PRODUCTS LIST ON MOBILE (up to 640px) */
@media (max-width: 640px) {
  .ProductsList .flex-1.overflow-y-auto.p-4 {
    display: none !important;
  }
  
  #supermarketProductsGrid {
    display: none !important;
  }
}
#supermarketProductsGrid.overflow-y-auto {
  max-height: 500px;
  overflow-y: auto;
}
/* STACK COLUMNS VERTICALLY ON TABLETS & MOBILE (up to 768px) */
@media (max-width: 768px) {
  /* Make parent container stack vertically */
  #supermarketModeModal .flex.flex-1.overflow-hidden {
    flex-direction: column !important;
    overflow-y: auto !important;
  }

  /* Make both columns full width */
  #supermarketModeModal .w-1\/2.border-r.border-gray-200,
  #supermarketModeModal .w-1\/2.flex.flex-col {
    width: 100% !important;
    border-right: none !important;
    height: auto !important;
  }
}

/* STACK BUTTONS VERTICALLY ON MOBILE (up to 640px) */
@media (max-width: 640px) {
  .supbtn .flex.space-x-3 {
    flex-direction: column !important;
    gap: 0.75rem !important;
    width: 100% !important;
  }

  #supermarketCheckoutBtn,
  #supermarketPrintCartBtn {
    width: 100% !important;
    min-height: 48px !important;
    padding: 0.75rem 1rem !important;
    font-size: 1rem !important;
    justify-content: center !important;
  }

  .supbtn .flex.space-x-3 > :not([hidden]) ~ :not([hidden]) {
    margin-left: 0 !important;
  }
}

/* KEEP SCANNER INPUT SIDE-BY-SIDE ON MOBILE (up to 640px) */
@media (max-width: 640px) {
  .supscan .flex.items-center.space-x-3 {
    flex-direction: row !important;
    gap: 0.5rem !important;
    align-items: stretch !important;
  }

  .supscan .flex-1.relative {
    flex: 1 !important;
  }

  #supermarketOpenScannerBtn {
    width: 50px !important;
    height: 50px !important;
    flex-shrink: 0 !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
  }

  .supscan .flex-1.relative input {
    height: 50px !important;
    font-size: 16px !important;
  }
}

/* MODAL WIDTH FOR TABLETS (769px to 1023px) */
@media (min-width: 769px) and (max-width: 1023px) {
  #supermarketModeModal {
    width: 90vw !important;
    max-width: none !important;
  }
}

/* styles/recipt.css */
/* === PRINT STYLES FOR RECEIPT === */

/* ----- Base resets ----- */
#receiptModal * {
    font-family: 'Helvetica Neue', 'Arial', sans-serif !important;
     z-index: 2147483617 !important;
}

/* ----- Watermark (screen) ----- */
#receiptWatermark {
    display: block !important;
    visibility: visible !important;
    opacity: 0.15 !important;                 /* single, consistent value */
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    z-index: 1 !important;                   /* behind content */
    pointer-events: none !important;
    background-repeat: no-repeat !important;
    background-position: center !important;
    background-size: contain !important;
    -webkit-print-color-adjust: exact !important;
    print-color-adjust: exact !important;
}

/* ----- Main table styling (screen AND print base) ----- */
.receipt-table {
    width: 100%;
    border-collapse: collapse;
    table-layout: auto !important;           /* allow columns to expand */
    color: #000000 !important;
    background-color: #ffffff;
}

/* Table headers */
.receipt-table th, 
#receiptModal th {
    background-color: #b4b6b4; /* Green header */
    color: #ffffff;
    padding: 8px 4px;
    text-align: left;
    font-weight: bold;
    border: 1px solid #000000;
    border-bottom: 3px solid green;
}

/* Table cells */
.receipt-table td,
#receiptItemsTableBody td {
    padding: 6px 4px;
    border-left: 1px solid #000000;
    border-right: 1px solid #000000;
    border-bottom: 1px solid #ff8c00;        /* brighter orange */
    text-align: left;
    color: #000000 !important;
    word-wrap: break-word;
    overflow: visible !important;
    max-width: none !important;
}

/* Row background */
.receipt-table tbody tr {
    background-color: #ffffff;
}

/* ----- Guarantee text (always red) ----- */
#receiptGuaranteevalidity p {
    color: red !important;
    font-weight: bold !important;
}

/* ----- Close button ----- */
.receipt-modal-close-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    background: transparent;
    border: none;
    font-size: 24px;
    color: #000000 !important;
    cursor: pointer;
    z-index: 2;
}

/* ----- Flash animation (unchanged) ----- */
@keyframes receiptFlash {
    0%   { background-color: transparent; }
    30%  { background-color: rgba(30, 255, 0, 0.3); }
    70%  { background-color: rgba(0, 47, 255, 0.2); }
    100% { background-color: transparent; }
}
.receipt-flash {
    animation: receiptFlash 0.8s ease-out;
}

/* ----- Festive badge (unchanged) ----- */
.festive-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    z-index: 30;
    display: flex;
    align-items: center;
    gap: 6px;
    background: linear-gradient(135deg, #ff416c, #ff4b2b);
    color: white;
    font-weight: bold;
    font-size: 14px;
    padding: 8px 15px;
    border-radius: 40px;
    box-shadow: 0 6px 12px rgba(0,0,0,0.2);
    border: 2px solid gold;
    transform: rotate(3deg);
    pointer-events: none;
    transition: all 0.3s ease;
    backdrop-filter: blur(2px);
}
.badge-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
}
.badge-icon svg {
    width: 100%;
    height: 100%;
    fill: currentColor;
    stroke: currentColor;
}
.festive-badge.christmas {
    background: linear-gradient(135deg, #c0392b, #e74c3c);
    border-color: #27ae60;
}
.festive-badge.newyear {
    background: linear-gradient(135deg, #2c3e50, #34495e);
    border-color: #f1c40f;
}
.festive-badge.birthday {
    background: linear-gradient(135deg, #8e44ad, #9b59b6);
    border-color: #f39c12;
}

/* ====================== PRINT ONLY ====================== */
/* ====================== PRINT ONLY ====================== */
@media print {
    @page {
        size: auto;
        margin: 10mm;
    }

    * {
        -webkit-print-color-adjust: exact !important;
        print-color-adjust: exact !important;
    }

    /* Hide UI elements */
    body[data-print-section="receipt"] #printHeader,
    body[data-print-section="receipt"] #printFooter,
    body[data-print-section="receipt"] #printReceiptBtn,
    body[data-print-section="receipt"] .modal-close-btn,
    body[data-print-section="receipt"] .hidden,
    body[data-print-section="receipt"] #downloadPdfBtn,
    body[data-print-section="receipt"] .receipt-modal-close-btn,
    body[data-print-section="receipt"] .receiptEditInput,
    body[data-print-section="receipt"] #customReceiptModal {
        display: none !important;
    }
/* Hide the loan receipt print area when printing a regular receipt */
body[data-print-section="receipt"] #loanReceiptPrintArea,
body[data-print-section="receipt"] #loanReceiptModal {
    display: none !important;
}

/* If you ever print a loan receipt, hide the regular one */
body[data-print-section="loan"] #receiptPrintArea,
body[data-print-section="loan"] #receiptModal {
    display: none !important;
}
    /* DUPLICATION FIX: hide any print‑only copy */
    #printPreview,
    #printReceiptContainer,
    .print-only-receipt,
    [id^="print-receipt-"],
    .receipt-modal + .receipt-modal,
    #receiptPrintArea:not(:first-of-type) {
        display: none !important;
    }

    body[data-print-section="receipt"] {
        background: #fff !important;
        color: #000000 !important;
    }

    div#receiptModal {
        display: block !important;
        visibility: visible !important;
        width: 100% !important;
        height: auto !important;
        max-height: none !important;
        overflow: visible !important;
        z-index: auto !important;
        align-items: unset !important;
        justify-content: unset !important;
    }

    div#receiptModal .receipt-content {
        overflow: visible !important;
        max-height: none !important;
        height: auto !important;
        width: 100% !important;
        max-width: 210mm !important;
        padding: 10mm !important;
        margin: 0 auto !important;
        background: #fff !important;
        color: #000000 !important;
        box-shadow: none !important;
        font-size: medium !important;
        position: static !important;
        page-break-after: auto !important;
    }

    #receiptWatermark {
        visibility: visible !important;
        opacity: 0.20 !important;
        background-size: contain !important;
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        width: 100% !important;
        height: 100% !important;
        z-index: 100 !important;
        pointer-events: none !important;
        display: block !important;
        background-repeat: no-repeat !important;
        background-position: center !important;
        background-image: var(--watermark-image, none);
    }

    #receiptModal table thead {
        display: table-header-group !important;
        background-color: #b4b6b4 !important;
        color: #ffffff !important;
    }
#receiptPrintArea div[style*="repeating-linear-gradient"] {
    opacity: 1 !important;
    filter: none !important;
}
    .receipt-table th {
        background-color: #b4b6b4 !important;
        color: #ffffff !important;
        font-weight: bold;
        border-bottom: 3px solid #0b5e20;
    }

    .receipt-table td {
        border-bottom: 2px solid #ff8c00 !important;
        color: #000000 !important;
        font-weight: bold !important;
        padding: 6px 4px;
        word-wrap: break-word;
        overflow: visible !important;
    }

    .receipt-table tbody tr {
        background-color: #ffffff !important;
        page-break-inside: avoid;
    }

    .receipt-table {
        table-layout: auto !important;
        width: 100% !important;
        border-collapse: collapse;
    }

    /* TOTAL AREA */
    #reptotel {
        font-size: 20px !important;
        font-family: 'Times New Roman', Times, serif !important;
        font-weight: 900 !important;
        white-space: nowrap !important;
        word-break: keep-all !important;
        overflow: visible !important;
        color: #000000 !important;
    }

    #receiptfooter2 .text-right.w-1\/2,
    #receiptfooter2 .text-right {
        min-width: 40% !important;
        overflow: visible !important;
    }

    #receiptTotalAmount {
        font-size: 28px !important;
        font-weight: 900 !important;
    }

    /* FOOTER KEEP‑TOGETHER */
    #receiptfooter2 .flex.justify-between {
        align-items: flex-start;
    }

    #receiptfooter2 .text-right {
        line-height: 1.2;
        margin-top: 0 !important;
    }

    #receiptfooter2 {
        page-break-before: avoid !important;
        break-before: avoid !important;
        page-break-inside: avoid !important;
        break-inside: avoid !important;
        widows: 4;
        orphans: 4;
        margin-top: 5px !important;
    }

    #receiptfooter {
        page-break-before: avoid !important;
        break-before: avoid !important;
        page-break-inside: avoid !important;
        break-inside: avoid !important;
        margin-top: 2px !important;
        orphans: 3;
        widows: 3;
    }

    #receiptItemsTableBody tr:last-child,
    #receiptItemsTableBody tr:nth-last-child(-n+3) {
        page-break-after: avoid !important;
        break-after: avoid !important;
    }

    /* Guarantee */
    #receiptGuaranteeSection span#receiptGuaranteeDate {
        color: red !important;
        font-weight: bold !important;
    }
    #receiptGuaranteeSection p {
        color: black !important;
    }

    h3#receiptBusinessName {
        font-size: 52px;
        font-weight: bold;
    }

    #receiptItemsTableBody tr {
        page-break-inside: avoid;
        break-inside: avoid;
    }
    #receiptItemsTableBody tr:nth-child(20n) {
        page-break-after: always;
        break-after: page;
    }

    .table-container {
        width: 100% !important;
        margin: 0 auto !important;
        height: auto !important;
        max-height: 100%;
        border: none;
        padding: 0;
    }

    /* Hide preview watermark */
    body[data-print-section="receipt"] #printPreviewWatermark {
        display: none !important;
        visibility: hidden !important;
        opacity: 0 !important;
    }
}

/* styles/print.css */
#printPreviewBody {
    overflow: visible !important;
    max-height: none !important;
}

#printPreviewWatermark {
    visibility: visible !important;
    opacity: 0.15 !important;
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    z-index: 1 !important; /* Lower z-index to stay behind content */
    pointer-events: none !important;
    display: block !important;
    background-repeat: no-repeat !important;
    background-position: center !important;
    background-size: 60% auto !important;
    -webkit-print-color-adjust: exact !important;
    print-color-adjust: exact !important;
}

#printPreviewBody {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: #f8faff;
    color: black !important;
    padding: 24px 0;
    min-height: 100vh;
    gap: 32px;
    z-index: 2 !important;
}

.print-preview-page {
    background: white;
    width: 794px;    /* A4 width at 96dpi */
    min-height: 1123px; /* A4 height at 96dpi */
    box-shadow: 0 0 8px rgba(0,0,0,0.15);
    margin: 0 auto 32px auto;
    padding: 80px 16px 100px 16px; /* Increased padding for header/footer space */
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    page-break-after: always;
    page-break-inside: avoid;
    break-after: page;
    break-inside: avoid;
    overflow: hidden;
}

/* Header styling for print preview */
.print-preview-page #printHeader {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    background: white !important;
    padding: 10px 16px !important;
    z-index: 10 !important;
    margin: 0 !important;
}

/* Footer styling for print preview */
.print-preview-page #printFooter {
    position: absolute !important;
    bottom: 0 !important;
    left: 0 !important;
    width: 100% !important;
    background: white !important;
    padding: 10px 16px !important;
    z-index: 10 !important;
    margin: 0 !important;
    border-top: 1px solid #ccc !important;
}

.print-preview-page table {
    position: relative !important;
    display: table !important;
    width: auto !important;
    max-width: 90% !important;
    min-width: 600px !important;
    margin: 0 auto !important;
    margin-top: 60px !important; /* Increased for header space */
    z-index: 5 !important;
}

.print-preview-page .overflow-x-auto {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    width: 100% !important;
    margin: 0 auto !important;
    position: relative !important;
    height: auto !important;
    margin-top: 80px !important; /* Increased for header space */
}

.table-title {
    font-size: 22px;
    font-weight: bold;
    text-align: center;
    margin: 80px 0 12px 0; /* Increased top margin */
    color: #000;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-bottom: 2px solid #333;
    padding-bottom: 6px;
    page-break-after: avoid;
    background-color: blue;
}

#printPreviewBody .print-preview-page table th:last-child,
#printPreviewBody .print-preview-page[data-section="sales"] table th:last-child {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    color: #000000 !important;
}

.print-preview-page:last-child {
    margin-bottom: 0;
    page-break-after: auto;
    break-after: auto;
}

.print-preview-page table {
    font-size: 10px !important;
    line-height: 1.2 !important;
    width: 100% !important;
    border-collapse: collapse !important;
}

.print-preview-page th,
.print-preview-page td {
    padding: 4px 6px !important;
    font-size: 10px !important;
    line-height: 1.2 !important;
    vertical-align: middle !important;
    border: 1px solid #ccc !important;
}

.print-preview-page th {
    font-size: 11px !important;
    font-weight: bold !important;
    background-color: #f8f9fa !important;
}

.print-preview-page #printHeader h4 {
    font-size: 30px !important;
    margin: 5px 0 !important;
}

.print-preview-page #printHeader img {
    max-height: 100px !important;
    max-width: 100px !important;
}

/* Reduce page number size */
.print-preview-page div[style*="text-align: right"] {
    font-size: 10px !important;
    margin-top: 5px !important;
}


/* REMOVE THIS RULE - it hides footers on all but last page */
/* #printPreviewBody .print-preview-page:not(:last-child) #printFooter {
    display: none !important;
} */

/* Ensure each page has enough space */
.print-preview-page {
    padding-bottom: 100px !important; /* Space for footer */
    padding-top: 80px !important; /* Space for header */
}

.print-preview-page table tr.bg-indigo-200.font-bold {
    background-color: black !important;
    color: rgb(255, 255, 255) !important;
}
#printPreviewModal .nodisply {
  display: none !important;
}@media print {
  .nodisply {
    display: none !important;
  }
}


@media print {
    /* Page settings */
    @page {
        size: A4;
        margin: 0; /* Remove margins for full control */
    }

    /* Hide non-print elements */
    #homeOverlay, #stockOptionsModal, #salesOptionsModal, #itemDetailsModal, #businessSettingsModal, #messageModal, #weeklySalesDateRangeLabel, #confirmationModal,
    #backToHomeBtn, #settingsBtn,
    #printPreviewModal .modal-close-btn,
    #printPreviewModal .flex.justify-end,
    #printPreviewModal #executePrintBtn,
    #printPreviewMenuBtn,#customerTransactionsModal,
    #customerSearchModal,
    #convertToPdfBtn, #mainContentContainer ,#saleNotificationBar,#loadingOverlay, #notifBellBtn {

        display: none !important;
        visibility: hidden !important;
        opacity: 0 !important;
    }

    body.min-h-screen.flex.items-center.justify-center.p-4.night-mode {
        background-color: #fff !important;
    }
.category-heading {
font-family: 'Poppins', 'Segoe UI', 'Arial', sans-serif;
  font-size: 1.25rem; /* Adjust font size as needed */
  text-transform: uppercase;
  position: center;
  background-color: #02080c;
}
    /* Hide management sections */
    #stockManagementSection,
    #salesManagementSection {
        display: none !important;
        visibility: hidden !important;
        opacity: 0 !important;
    }

    /* Show relevant sections */
    body[data-print-section="stock"] #stockManagementSection {
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
    }
    body[data-print-section="sales"] #salesManagementSection {
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
    }

    /* FIXED HEADER FOR PRINT - appears on every page */
    #printHeader {
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        width: 100% !important;
        background-color: white !important;
        color: #000000 !important;
        z-index: 1000 !important;
        visibility: visible !important;
        opacity: 1 !important;
        height: auto !important;
        max-height: 100px !important;
        font-size: 12px !important;
        padding: 10px !important;
        margin: 0 !important;
        page-break-inside: avoid !important;
        -webkit-print-color-adjust: exact !important;
        print-color-adjust: exact !important;
    }

    /* FIXED FOOTER FOR PRINT - appears on every page */
    #printFooter {
        position: fixed !important;
        bottom: 0 !important;
        left: 0 !important;
        width: 100% !important;
        background-color: white !important;
        color: #000000 !important;
        z-index: 1000 !important;
        visibility: visible !important;
        opacity: 1 !important;
        height: auto !important;
        max-height: 80px !important;
        font-size: 12px !important;
        padding: 10px !important;
        margin: 0 !important;
        border-top: 1px solid #ccc !important;
        page-break-inside: avoid !important;
        -webkit-print-color-adjust: exact !important;
        print-color-adjust: exact !important;
    }

    /* Adjust print preview pages for fixed header/footer */
    .print-preview-page {
        position: relative !important;
        width: 210mm !important;
        height: 297mm !important;
        margin: 0 !important;
        padding: 100px 20px 80px 20px !important; /* Space for fixed header/footer */
        page-break-after: always !important;
        break-after: page !important;
        background: white !important;
        overflow: visible !important;
        box-shadow: none !important;
    }

    /* Ensure content starts below header */
    .print-preview-page h2,
    .print-preview-page .print-title,
    .print-preview-page .table-title {
        margin-top: 40px !important;
    }

    /* Ensure tables start below header */
    .print-preview-page table {
        margin-top: 50px !important;
    }

    /* Print preview modal styling */
    #printPreviewModal,
    #printPreviewModal .modal-content {
        display: block !important;
        position: static !important;
        width: 100% !important;
        height: auto !important;
        max-width: none !important;
        max-height: none !important;
        background: none !important;
        box-shadow: none !important;
        padding: 0 !important;
        margin: 0 !important;
        overflow: visible !important;
    }

    #printPreviewBody {
        display: block !important;
        overflow: visible !important;
        max-height: none !important;
        height: auto !important;
        background: white !important;
        color: black !important;
        margin: 0 !important;
        padding: 0 !important;
        box-shadow: none !important;
        width: 100% !important;
        min-height: 0 !important;
    }

    /* Watermark for print */
#printPreviewWatermark {
        display: block !important;
        visibility: visible !important;
        opacity: 0.10 !important; /* Keep it light so text is readable */
        
        /* THE FIX: position fixed at the body level */
        position: fixed !important;
        top: 25% !important; /* Move it down slightly for better centering */
        left: 0 !important;
        width: 100vw !important;
        height: 50vh !important; /* Using vh ensures it repeats across page breaks */
        
        z-index: 1000000000000000000000000000000000000000000 !important; /* Put it BEHIND the text */
        pointer-events: none !important;
        
        background-repeat: no-repeat !important;
        background-position: center center !important;
        background-size: 80% auto !important; /* Make it large */
        
        -webkit-print-color-adjust: exact !important;
        print-color-adjust: exact !important;
    }

    /* Table styling for print */
    .print-preview-page table {
        border: 2px solid #2563eb !important;
        border-collapse: collapse !important;
        -webkit-print-color-adjust: exact !important;
        print-color-adjust: exact !important;
    }

    .print-preview-page th,
    .print-preview-page td {
        border: 1px solid #3b82f6 !important;
        border-collapse: collapse !important;
        -webkit-print-color-adjust: exact !important;
        print-color-adjust: exact !important;
    }

    .print-preview-page th {
        border-bottom: 2px solid #1d4ed8 !important;
        background-color: #dbeafe !important;
        -webkit-print-color-adjust: exact !important;
        print-color-adjust: exact !important;
    }

    .print-preview-page table tr {
        background-color: white !important;
        color: black !important;
    }

    .print-preview-page table tr.bg-indigo-200.font-bold {
        background-color: rgb(0, 0, 0) !important;
        color: rgb(255, 246, 246) !important;
    }

    .text-blue-700,
    .text-white-805 {
        color: black !important;
    }

    /* Hide images in print */
    #printPreviewBody .print-preview-page table img, .item-image {
        display: none !important;
    }

 
}

/* styles/output.css */
/* =========================================================
	LANGUAGE DIRECTION SUPPORT
	Arabic = right-to-left; all other supported languages = left-to-right
	========================================================= */
html[lang="ar"],html[dir="rtl"],body[dir="rtl"]{direction:rtl}html[lang="ar"] body,html[dir="rtl"] body,body[dir="rtl"]{text-align:right}html[lang="ar"] [data-translate],html[lang="ar"] [data-translate-placeholder],html[dir="rtl"] [data-translate],html[dir="rtl"] [data-translate-placeholder],body[dir="rtl"] [data-translate],body[dir="rtl"] [data-translate-placeholder]{direction:rtl;text-align:right;unicode-bidi:plaintext}html[lang="ar"] input,html[lang="ar"] textarea,html[lang="ar"] select,html[dir="rtl"] input,html[dir="rtl"] textarea,html[dir="rtl"] select,body[dir="rtl"] input,body[dir="rtl"] textarea,body[dir="rtl"] select{direction:rtl;text-align:right}html[lang="ar"] th,html[lang="ar"] td,html[dir="rtl"] th,html[dir="rtl"] td,body[dir="rtl"] th,body[dir="rtl"] td{text-align:right}html[lang="ar"] button,html[lang="ar"] .btn,html[dir="rtl"] button,html[dir="rtl"] .btn,body[dir="rtl"] button,body[dir="rtl"] .btn{unicode-bidi:plaintext}.numeric,.price,.amount,.barcode,.sku,.code,.date,.number,input[type="number"]{direction:ltr;unicode-bidi:plaintext}html[lang="en"],html[lang="fr"],html[lang="zh"],html[dir="ltr"],body[dir="ltr"]{direction:ltr}html[lang="en"] body,html[lang="fr"] body,html[lang="zh"] body,html[dir="ltr"] body,body[dir="ltr"]{text-align:left}
*,:after,:before{--tw-border-spacing-x:0;--tw-border-spacing-y:0;--tw-translate-x:0;--tw-translate-y:0;--tw-rotate:0;--tw-skew-x:0;--tw-skew-y:0;--tw-scale-x:1;--tw-scale-y:1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness:proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-color:rgba(59,130,246,.5);--tw-ring-offset-shadow:0 0 #0000;--tw-ring-shadow:0 0 #0000;--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }::backdrop{--tw-border-spacing-x:0;--tw-border-spacing-y:0;--tw-translate-x:0;--tw-translate-y:0;--tw-rotate:0;--tw-skew-x:0;--tw-skew-y:0;--tw-scale-x:1;--tw-scale-y:1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness:proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-color:rgba(59,130,246,.5);--tw-ring-offset-shadow:0 0 #0000;--tw-ring-shadow:0 0 #0000;--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }/*! tailwindcss v3.4.17 | MIT License | https://tailwindcss.com*/*,:after,:before{box-sizing:border-box;border:0 solid #e5e7eb}:after,:before{--tw-content:""}:host,html{line-height:1.5;-webkit-text-size-adjust:100%;-moz-tab-size:4;-o-tab-size:4;tab-size:4;font-family:ui-sans-serif,system-ui,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;font-feature-settings:normal;font-variation-settings:normal;-webkit-tap-highlight-color:transparent}body{margin:0;line-height:inherit}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,pre,samp{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-feature-settings:normal;font-variation-settings:normal;font-size:1em}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}button,input,optgroup,select,textarea{font-family:inherit;font-feature-settings:inherit;font-variation-settings:inherit;font-size:100%;font-weight:inherit;line-height:inherit;letter-spacing:inherit;color:inherit;margin:0;padding:0}button,select{text-transform:none}button,input:where([type=button]),input:where([type=reset]),input:where([type=submit]){-webkit-appearance:button;background-color:transparent;background-image:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:baseline}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dd,dl,figure,h1,h2,h3,h4,h5,h6,hr,p,pre{margin:0}fieldset{margin:0}fieldset,legend{padding:0}menu,ol,ul{list-style:none;margin:0;padding:0}dialog{padding:0}textarea{resize:vertical}input::-moz-placeholder,textarea::-moz-placeholder{opacity:1;color:#9ca3af}input::placeholder,textarea::placeholder{opacity:1;color:#9ca3af}[role=button],button{cursor:pointer}:disabled{cursor:default}audio,canvas,embed,iframe,img,object,svg,video{display:block;vertical-align:middle}img,video{max-width:100%;height:auto}[hidden]:where(:not([hidden=until-found])){display:none}.container{width:100%}@media (min-width:640px){.container{max-width:640px}}@media (min-width:768px){.container{max-width:768px}}@media (min-width:1024px){.container{max-width:1024px}}@media (min-width:1280px){.container{max-width:1280px}}@media (min-width:1536px){.container{max-width:1536px}}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border-width:0}.pointer-events-none{pointer-events:none}.visible{visibility:visible}.collapse{visibility:collapse}.static{position:static}.fixed{position:fixed}.absolute{position:absolute}.relative{position:relative}.sticky{position:sticky}.inset-0{inset:0}.inset-y-0{top:0;bottom:0}.-right-1{right:-.25rem}.-top-1{top:-.25rem}.bottom-0{bottom:0}.bottom-4{bottom:1rem}.bottom-6{bottom:1.5rem}.left-0{left:0}.left-4{left:1rem}.left-6{left:1.5rem}.right-0{right:0}.right-2{right:.5rem}.right-4{right:1rem}.right-6{right:1.5rem}.top-0{top:0}.top-12{top:3rem}.top-16{top:4rem}.top-2{top:.5rem}.top-4{top:1rem}.top-6{top:1.5rem}.z-0{z-index:0}.z-10{z-index:10}.z-40{z-index:40}.z-50{z-index:50}.z-\[999999\]{z-index:999999}.z-\[9999\]{z-index:9999}.col-span-1{grid-column:span 1/span 1}.float-right{float:right}.mx-auto{margin-left:auto;margin-right:auto}.my-1{margin-top:.25rem;margin-bottom:.25rem}.my-4{margin-top:1rem;margin-bottom:1rem}.mb-1{margin-bottom:.25rem}.mb-2{margin-bottom:.5rem}.mb-20{margin-bottom:5rem}.mb-3{margin-bottom:.75rem}.mb-4{margin-bottom:1rem}.mb-6{margin-bottom:1.5rem}.mb-8{margin-bottom:2rem}.ml-1{margin-left:.25rem}.ml-2{margin-left:.5rem}.ml-3{margin-left:.75rem}.ml-4{margin-left:1rem}.mr-1{margin-right:.25rem}.mr-2{margin-right:.5rem}.mr-3{margin-right:.75rem}.mr-4{margin-right:1rem}.mt-1{margin-top:.25rem}.mt-12{margin-top:3rem}.mt-16{margin-top:4rem}.mt-2{margin-top:.5rem}.mt-20{margin-top:5rem}.mt-4{margin-top:1rem}.mt-6{margin-top:1.5rem}.mt-8{margin-top:2rem}.block{display:block}.inline{display:inline}.flex{display:flex}.inline-flex{display:inline-flex}.table{display:table}.grid{display:grid}.contents{display:contents}.hidden{display:none}.aspect-square{aspect-ratio:1/1}.h-10{height:2.5rem}.h-12{height:3rem}.h-14{height:3.5rem}.h-16{height:4rem}.h-2{height:.5rem}.h-20{height:5rem}.h-24{height:6rem}.h-3{height:.75rem}.h-32{height:8rem}.h-4{height:1rem}.h-48{height:12rem}.h-5{height:1.25rem}.h-6{height:1.5rem}.h-64{height:16rem}.h-7{height:1.75rem}.h-8{height:2rem}.h-\[calc\(100\%-60px\)\]{height:calc(100% - 60px)}.h-auto{height:auto}.h-full{height:100%}.max-h-64{max-height:16rem}.max-h-96{max-height:24rem}.max-h-\[100px\]{max-height:100px}.max-h-\[120px\]{max-height:120px}.max-h-\[400px\]{max-height:400px}.max-h-\[80vh\]{max-height:80vh}.min-h-\[200px\]{min-height:200px}.min-h-screen{min-height:100vh}.w-1\/12{width:8.333333%}.w-1\/2{width:50%}.w-1\/4{width:25%}.w-1\/5{width:20%}.w-1\/6{width:16.666667%}.w-10{width:2.5rem}.w-12{width:3rem}.w-14{width:3.5rem}.w-16{width:4rem}.w-20{width:5rem}.w-24{width:6rem}.w-3\/4{width:75%}.w-32{width:8rem}.w-48{width:12rem}.w-5{width:1.25rem}.w-6{width:1.5rem}.w-64{width:16rem}.w-7{width:1.75rem}.w-8{width:2rem}.w-80{width:20rem}.w-96{width:24rem}.w-auto{width:auto}.w-full{width:100%}.min-w-\[150px\]{min-width:150px}.min-w-\[200px\]{min-width:200px}.min-w-full{min-width:100%}.max-w-4xl{max-width:56rem}.max-w-7xl{max-width:80rem}.max-w-full{max-width:100%}.max-w-md{max-width:28rem}.max-w-sm{max-width:24rem}.max-w-xs{max-width:20rem}.flex-1{flex:1 1 0%}.flex-shrink-0{flex-shrink:0}.flex-grow{flex-grow:1}.table-auto{table-layout:auto}.border-collapse{border-collapse:collapse}.-translate-x-full{--tw-translate-x:-100%}.-translate-x-full,.translate-x-full{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.translate-x-full{--tw-translate-x:100%}.translate-y-0{--tw-translate-y:0px}.translate-y-0,.translate-y-20{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.translate-y-20{--tw-translate-y:5rem}.scale-95{--tw-scale-x:.95;--tw-scale-y:.95}.scale-95,.transform{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}@keyframes bounce{0%,to{transform:translateY(-25%);animation-timing-function:cubic-bezier(.8,0,1,1)}50%{transform:none;animation-timing-function:cubic-bezier(0,0,.2,1)}}.animate-bounce{animation:bounce 1s infinite}@keyframes spin{to{transform:rotate(1turn)}}.animate-spin{animation:spin 1s linear infinite}.cursor-default{cursor:default}.cursor-pointer{cursor:pointer}.list-disc{list-style-type:disc}.appearance-none{-webkit-appearance:none;-moz-appearance:none;appearance:none}.grid-cols-1{grid-template-columns:repeat(1,minmax(0,1fr))}.grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.grid-cols-4{grid-template-columns:repeat(4,minmax(0,1fr))}.flex-col{flex-direction:column}.flex-wrap{flex-wrap:wrap}.items-start{align-items:flex-start}.items-end{align-items:flex-end}.items-center{align-items:center}.justify-start{justify-content:flex-start}.justify-end{justify-content:flex-end}.justify-center{justify-content:center}.justify-between{justify-content:space-between}.gap-2{gap:.5rem}.gap-4{gap:1rem}.gap-6{gap:1.5rem}.gap-8{gap:2rem}.space-x-2>:not([hidden])~:not([hidden]){--tw-space-x-reverse:0;margin-right:calc(.5rem*var(--tw-space-x-reverse));margin-left:calc(.5rem*(1 - var(--tw-space-x-reverse)))}.space-x-3>:not([hidden])~:not([hidden]){--tw-space-x-reverse:0;margin-right:calc(.75rem*var(--tw-space-x-reverse));margin-left:calc(.75rem*(1 - var(--tw-space-x-reverse)))}.space-x-4>:not([hidden])~:not([hidden]){--tw-space-x-reverse:0;margin-right:calc(1rem*var(--tw-space-x-reverse));margin-left:calc(1rem*(1 - var(--tw-space-x-reverse)))}.space-y-1>:not([hidden])~:not([hidden]){--tw-space-y-reverse:0;margin-top:calc(.25rem*(1 - var(--tw-space-y-reverse)));margin-bottom:calc(.25rem*var(--tw-space-y-reverse))}.space-y-2>:not([hidden])~:not([hidden]){--tw-space-y-reverse:0;margin-top:calc(.5rem*(1 - var(--tw-space-y-reverse)));margin-bottom:calc(.5rem*var(--tw-space-y-reverse))}.space-y-3>:not([hidden])~:not([hidden]){--tw-space-y-reverse:0;margin-top:calc(.75rem*(1 - var(--tw-space-y-reverse)));margin-bottom:calc(.75rem*var(--tw-space-y-reverse))}.space-y-4>:not([hidden])~:not([hidden]){--tw-space-y-reverse:0;margin-top:calc(1rem*(1 - var(--tw-space-y-reverse)));margin-bottom:calc(1rem*var(--tw-space-y-reverse))}.space-y-6>:not([hidden])~:not([hidden]){--tw-space-y-reverse:0;margin-top:calc(1.5rem*(1 - var(--tw-space-y-reverse)));margin-bottom:calc(1.5rem*var(--tw-space-y-reverse))}.divide-y>:not([hidden])~:not([hidden]){--tw-divide-y-reverse:0;border-top-width:calc(1px*(1 - var(--tw-divide-y-reverse)));border-bottom-width:calc(1px*var(--tw-divide-y-reverse))}.overflow-hidden{overflow:hidden}.overflow-x-auto{overflow-x:auto}.overflow-y-auto{overflow-y:auto}.whitespace-nowrap{white-space:nowrap}.whitespace-pre-line{white-space:pre-line}.rounded{border-radius:.25rem}.rounded-2xl{border-radius:1rem}.rounded-3xl{border-radius:1.5rem}.rounded-full{border-radius:9999px}.rounded-lg{border-radius:.5rem}.rounded-md{border-radius:.375rem}.rounded-xl{border-radius:.75rem}.rounded-tl-md{border-top-left-radius:.375rem}.rounded-tr-md{border-top-right-radius:.375rem}.border{border-width:1px}.border-2{border-width:2px}.border-4{border-width:4px}.border-b{border-bottom-width:1px}.border-b-4{border-bottom-width:4px}.border-l-4{border-left-width:4px}.border-t{border-top-width:1px}.border-t-4{border-top-width:4px}.border-dashed{border-style:dashed}.border-blue-400{--tw-border-opacity:1;border-color:rgb(96 165 250/var(--tw-border-opacity,1))}.border-gray-600{--tw-border-opacity:1;border-color:rgb(75 85 99/var(--tw-border-opacity,1))}.border-gray-700{--tw-border-opacity:1;border-color:rgb(55 65 81/var(--tw-border-opacity,1))}.border-green-500{--tw-border-opacity:1;border-color:rgb(34 197 94/var(--tw-border-opacity,1))}.border-red-300{--tw-border-opacity:1;border-color:rgb(252 165 165/var(--tw-border-opacity,1))}.bg-black{--tw-bg-opacity:1;background-color:rgb(0 0 0/var(--tw-bg-opacity,1))}.bg-black\/50{background-color:rgba(0,0,0,.5)}.bg-blue-100{--tw-bg-opacity:1;background-color:rgb(219 234 254/var(--tw-bg-opacity,1))}.bg-blue-500{--tw-bg-opacity:1;background-color:rgb(59 130 246/var(--tw-bg-opacity,1))}.bg-blue-600{--tw-bg-opacity:1;background-color:rgb(37 99 235/var(--tw-bg-opacity,1))}.bg-gray-100{--tw-bg-opacity:1;background-color:rgb(243 244 246/var(--tw-bg-opacity,1))}.bg-gray-200{--tw-bg-opacity:1;background-color:rgb(229 231 235/var(--tw-bg-opacity,1))}.bg-gray-300{--tw-bg-opacity:1;background-color:rgb(209 213 219/var(--tw-bg-opacity,1))}.bg-gray-600{--tw-bg-opacity:1;background-color:rgb(75 85 99/var(--tw-bg-opacity,1))}.bg-gray-700{--tw-bg-opacity:1;background-color:rgb(55 65 81/var(--tw-bg-opacity,1))}.bg-gray-800{--tw-bg-opacity:1;background-color:rgb(31 41 55/var(--tw-bg-opacity,1))}.bg-gray-900{--tw-bg-opacity:1;background-color:rgb(17 24 39/var(--tw-bg-opacity,1))}.bg-green-400{--tw-bg-opacity:1;background-color:rgb(74 222 128/var(--tw-bg-opacity,1))}.bg-green-500{--tw-bg-opacity:1;background-color:rgb(34 197 94/var(--tw-bg-opacity,1))}.bg-green-600{--tw-bg-opacity:1;background-color:rgb(22 163 74/var(--tw-bg-opacity,1))}.bg-indigo-500{--tw-bg-opacity:1;background-color:rgb(99 102 241/var(--tw-bg-opacity,1))}.bg-indigo-600{--tw-bg-opacity:1;background-color:rgb(79 70 229/var(--tw-bg-opacity,1))}.bg-purple-600{--tw-bg-opacity:1;background-color:rgb(147 51 234/var(--tw-bg-opacity,1))}.bg-red-100{--tw-bg-opacity:1;background-color:rgb(254 226 226/var(--tw-bg-opacity,1))}.bg-red-500{--tw-bg-opacity:1;background-color:rgb(239 68 68/var(--tw-bg-opacity,1))}.bg-red-600{--tw-bg-opacity:1;background-color:rgb(220 38 38/var(--tw-bg-opacity,1))}.bg-teal-500{--tw-bg-opacity:1;background-color:rgb(20 184 166/var(--tw-bg-opacity,1))}.bg-transparent{background-color:transparent}.bg-white{--tw-bg-opacity:1;background-color:rgb(255 255 255/var(--tw-bg-opacity,1))}.bg-white\/20{background-color:hsla(0,0%,100%,.2)}.bg-yellow-100{--tw-bg-opacity:1;background-color:rgb(254 249 195/var(--tw-bg-opacity,1))}.bg-yellow-500{--tw-bg-opacity:1;background-color:rgb(234 179 8/var(--tw-bg-opacity,1))}.bg-opacity-40{--tw-bg-opacity:0.4}.bg-opacity-50{--tw-bg-opacity:0.5}.bg-gradient-to-br{background-image:linear-gradient(to bottom right,var(--tw-gradient-stops))}.bg-gradient-to-r{background-image:linear-gradient(to right,var(--tw-gradient-stops))}.from-black\/60{--tw-gradient-from:rgba(0,0,0,.6) var(--tw-gradient-from-position);--tw-gradient-to:transparent var(--tw-gradient-to-position);--tw-gradient-stops:var(--tw-gradient-from),var(--tw-gradient-to)}.from-blue-500{--tw-gradient-from:#3b82f6 var(--tw-gradient-from-position);--tw-gradient-to:rgba(59,130,246,0) var(--tw-gradient-to-position);--tw-gradient-stops:var(--tw-gradient-from),var(--tw-gradient-to)}.from-emerald-500{--tw-gradient-from:#10b981 var(--tw-gradient-from-position);--tw-gradient-to:rgba(16,185,129,0) var(--tw-gradient-to-position);--tw-gradient-stops:var(--tw-gradient-from),var(--tw-gradient-to)}.from-gray-800{--tw-gradient-from:#1f2937 var(--tw-gradient-from-position);--tw-gradient-to:rgba(31,41,55,0) var(--tw-gradient-to-position);--tw-gradient-stops:var(--tw-gradient-from),var(--tw-gradient-to)}.from-green-500{--tw-gradient-from:#22c55e var(--tw-gradient-from-position);--tw-gradient-to:rgba(34,197,94,0) var(--tw-gradient-to-position);--tw-gradient-stops:var(--tw-gradient-from),var(--tw-gradient-to)}.from-indigo-500{--tw-gradient-from:#6366f1 var(--tw-gradient-from-position);--tw-gradient-to:rgba(99,102,241,0) var(--tw-gradient-to-position);--tw-gradient-stops:var(--tw-gradient-from),var(--tw-gradient-to)}.from-pink-500{--tw-gradient-from:#ec4899 var(--tw-gradient-from-position);--tw-gradient-to:rgba(236,72,153,0) var(--tw-gradient-to-position);--tw-gradient-stops:var(--tw-gradient-from),var(--tw-gradient-to)}.from-purple-500{--tw-gradient-from:#a855f7 var(--tw-gradient-from-position);--tw-gradient-to:rgba(168,85,247,0) var(--tw-gradient-to-position);--tw-gradient-stops:var(--tw-gradient-from),var(--tw-gradient-to)}.from-red-500{--tw-gradient-from:#ef4444 var(--tw-gradient-from-position);--tw-gradient-to:rgba(239,68,68,0) var(--tw-gradient-to-position);--tw-gradient-stops:var(--tw-gradient-from),var(--tw-gradient-to)}.from-yellow-500{--tw-gradient-from:#eab308 var(--tw-gradient-from-position);--tw-gradient-to:rgba(234,179,8,0) var(--tw-gradient-to-position);--tw-gradient-stops:var(--tw-gradient-from),var(--tw-gradient-to)}.via-black\/30{--tw-gradient-to:transparent var(--tw-gradient-to-position);--tw-gradient-stops:var(--tw-gradient-from),rgba(0,0,0,.3) var(--tw-gradient-via-position),var(--tw-gradient-to)}.via-red-500{--tw-gradient-to:rgba(239,68,68,0) var(--tw-gradient-to-position);--tw-gradient-stops:var(--tw-gradient-from),#ef4444 var(--tw-gradient-via-position),var(--tw-gradient-to)}.to-blue-600{--tw-gradient-to:#2563eb var(--tw-gradient-to-position)}.to-blue-700{--tw-gradient-to:#1d4ed8 var(--tw-gradient-to-position)}.to-emerald-600{--tw-gradient-to:#059669 var(--tw-gradient-to-position)}.to-gray-900{--tw-gradient-to:#111827 var(--tw-gradient-to-position)}.to-green-600{--tw-gradient-to:#16a34a var(--tw-gradient-to-position)}.to-indigo-600{--tw-gradient-to:#4f46e5 var(--tw-gradient-to-position)}.to-pink-600{--tw-gradient-to:#db2777 var(--tw-gradient-to-position)}.to-purple-600{--tw-gradient-to:#9333ea var(--tw-gradient-to-position)}.to-red-600{--tw-gradient-to:#dc2626 var(--tw-gradient-to-position)}.to-transparent{--tw-gradient-to:transparent var(--tw-gradient-to-position)}.to-yellow-600{--tw-gradient-to:#ca8a04 var(--tw-gradient-to-position)}.object-contain{-o-object-fit:contain;object-fit:contain}.object-cover{-o-object-fit:cover;object-fit:cover}.p-2{padding:.5rem}.p-3{padding:.75rem}.p-4{padding:1rem}.p-6{padding:1.5rem}.p-8{padding:2rem}.px-1{padding-left:.25rem;padding-right:.25rem}.px-2{padding-left:.5rem;padding-right:.5rem}.px-3{padding-left:.75rem;padding-right:.75rem}.px-4{padding-left:1rem;padding-right:1rem}.px-6{padding-left:1.5rem;padding-right:1.5rem}.px-8{padding-left:2rem;padding-right:2rem}.py-1{padding-top:.25rem;padding-bottom:.25rem}.py-2{padding-top:.5rem;padding-bottom:.5rem}.py-3{padding-top:.75rem;padding-bottom:.75rem}.py-4{padding-top:1rem;padding-bottom:1rem}.py-6{padding-top:1.5rem;padding-bottom:1.5rem}.py-8{padding-top:2rem;padding-bottom:2rem}.pb-1{padding-bottom:.25rem}.pb-6{padding-bottom:1.5rem}.pl-1{padding-left:.25rem}.pl-10{padding-left:2.5rem}.pl-3{padding-left:.75rem}.pl-5{padding-left:1.25rem}.pt-2{padding-top:.5rem}.pt-20{padding-top:5rem}.pt-5{padding-top:1.25rem}.text-left{text-align:left}.text-center{text-align:center}.text-right{text-align:right}.font-mono{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace}.font-sans{font-family:ui-sans-serif,system-ui,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji}.text-2xl{font-size:1.5rem;line-height:2rem}.text-3xl{font-size:1.875rem;line-height:2.25rem}.text-4xl{font-size:2.25rem;line-height:2.5rem}.text-5xl{font-size:3rem;line-height:1}.text-lg{font-size:1.125rem;line-height:1.75rem}.text-sm{font-size:.875rem;line-height:1.25rem}.text-xl{font-size:1.25rem;line-height:1.75rem}.text-xs{font-size:.75rem;line-height:1rem}.font-bold{font-weight:700}.font-extrabold{font-weight:800}.font-light{font-weight:300}.font-medium{font-weight:500}.font-semibold{font-weight:600}.uppercase{text-transform:uppercase}.italic{font-style:italic}.leading-none{line-height:1}.leading-normal{line-height:1.5}.leading-tight{line-height:1.25}.tracking-wide{letter-spacing:.025em}.tracking-wider{letter-spacing:.05em}.tracking-widest{letter-spacing:.1em}.text-black{--tw-text-opacity:1;color:rgb(0 0 0/var(--tw-text-opacity,1))}.text-blue-400{--tw-text-opacity:1;color:rgb(96 165 250/var(--tw-text-opacity,1))}.text-blue-500{--tw-text-opacity:1;color:rgb(59 130 246/var(--tw-text-opacity,1))}.text-blue-600{--tw-text-opacity:1;color:rgb(37 99 235/var(--tw-text-opacity,1))}.text-blue-700{--tw-text-opacity:1;color:rgb(29 78 216/var(--tw-text-opacity,1))}.text-blue-800{--tw-text-opacity:1;color:rgb(30 64 175/var(--tw-text-opacity,1))}.text-gray-100{--tw-text-opacity:1;color:rgb(243 244 246/var(--tw-text-opacity,1))}.text-gray-300{--tw-text-opacity:1;color:rgb(209 213 219/var(--tw-text-opacity,1))}.text-gray-400{--tw-text-opacity:1;color:rgb(156 163 175/var(--tw-text-opacity,1))}.text-gray-500{--tw-text-opacity:1;color:rgb(107 114 128/var(--tw-text-opacity,1))}.text-gray-600{--tw-text-opacity:1;color:rgb(75 85 99/var(--tw-text-opacity,1))}.text-gray-700{--tw-text-opacity:1;color:rgb(55 65 81/var(--tw-text-opacity,1))}.text-gray-800{--tw-text-opacity:1;color:rgb(31 41 55/var(--tw-text-opacity,1))}.text-green-400{--tw-text-opacity:1;color:rgb(74 222 128/var(--tw-text-opacity,1))}.text-green-500{--tw-text-opacity:1;color:rgb(34 197 94/var(--tw-text-opacity,1))}.text-green-600{--tw-text-opacity:1;color:rgb(22 163 74/var(--tw-text-opacity,1))}.text-green-700{--tw-text-opacity:1;color:rgb(21 128 61/var(--tw-text-opacity,1))}.text-pink-700{--tw-text-opacity:1;color:rgb(190 24 93/var(--tw-text-opacity,1))}.text-purple-500{--tw-text-opacity:1;color:rgb(168 85 247/var(--tw-text-opacity,1))}.text-red-500{--tw-text-opacity:1;color:rgb(239 68 68/var(--tw-text-opacity,1))}.text-red-600{--tw-text-opacity:1;color:rgb(220 38 38/var(--tw-text-opacity,1))}.text-red-700{--tw-text-opacity:1;color:rgb(185 28 28/var(--tw-text-opacity,1))}.text-red-800{--tw-text-opacity:1;color:rgb(153 27 27/var(--tw-text-opacity,1))}.text-teal-400{--tw-text-opacity:1;color:rgb(45 212 191/var(--tw-text-opacity,1))}.text-white{--tw-text-opacity:1;color:rgb(255 255 255/var(--tw-text-opacity,1))}.text-white\/80{color:hsla(0,0%,100%,.8)}.text-yellow-800{--tw-text-opacity:1;color:rgb(133 77 14/var(--tw-text-opacity,1))}.antialiased{-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.opacity-0{opacity:0}.opacity-100{opacity:1}.opacity-25{opacity:.25}.opacity-75{opacity:.75}.shadow{--tw-shadow:0 1px 3px 0 rgba(0,0,0,.1),0 1px 2px -1px rgba(0,0,0,.1);--tw-shadow-colored:0 1px 3px 0 var(--tw-shadow-color),0 1px 2px -1px var(--tw-shadow-color)}.shadow,.shadow-2xl{box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)}.shadow-2xl{--tw-shadow:0 25px 50px -12px rgba(0,0,0,.25);--tw-shadow-colored:0 25px 50px -12px var(--tw-shadow-color)}.shadow-inner{--tw-shadow:inset 0 2px 4px 0 rgba(0,0,0,.05);--tw-shadow-colored:inset 0 2px 4px 0 var(--tw-shadow-color)}.shadow-inner,.shadow-lg{box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)}.shadow-lg{--tw-shadow:0 10px 15px -3px rgba(0,0,0,.1),0 4px 6px -4px rgba(0,0,0,.1);--tw-shadow-colored:0 10px 15px -3px var(--tw-shadow-color),0 4px 6px -4px var(--tw-shadow-color)}.shadow-md{--tw-shadow:0 4px 6px -1px rgba(0,0,0,.1),0 2px 4px -2px rgba(0,0,0,.1);--tw-shadow-colored:0 4px 6px -1px var(--tw-shadow-color),0 2px 4px -2px var(--tw-shadow-color)}.shadow-md,.shadow-sm{box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)}.shadow-sm{--tw-shadow:0 1px 2px 0 rgba(0,0,0,.05);--tw-shadow-colored:0 1px 2px 0 var(--tw-shadow-color)}.shadow-xl{--tw-shadow:0 20px 25px -5px rgba(0,0,0,.1),0 8px 10px -6px rgba(0,0,0,.1);--tw-shadow-colored:0 20px 25px -5px var(--tw-shadow-color),0 8px 10px -6px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)}.blur{--tw-blur:blur(8px)}.blur,.drop-shadow{filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.drop-shadow{--tw-drop-shadow:drop-shadow(0 1px 2px rgba(0,0,0,.1)) drop-shadow(0 1px 1px rgba(0,0,0,.06))}.filter{filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.backdrop-filter{-webkit-backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia);backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia)}.transition{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,-webkit-backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter,-webkit-backdrop-filter;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-all{transition-property:all;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-colors{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-transform{transition-property:transform;transition-timing-function:cubic-bezier(.4,0,.2,1)}.duration-150,.transition-transform{transition-duration:.15s}.duration-200{transition-duration:.2s}.duration-300{transition-duration:.3s}.duration-500{transition-duration:.5s}.ease-in-out{transition-timing-function:cubic-bezier(.4,0,.2,1)}.file\:mr-4::file-selector-button{margin-right:1rem}.file\:rounded-full::file-selector-button{border-radius:9999px}.file\:rounded-md::file-selector-button{border-radius:.375rem}.file\:border-0::file-selector-button{border-width:0}.file\:bg-blue-50::file-selector-button{--tw-bg-opacity:1;background-color:rgb(239 246 255/var(--tw-bg-opacity,1))}.file\:bg-teal-500::file-selector-button{--tw-bg-opacity:1;background-color:rgb(20 184 166/var(--tw-bg-opacity,1))}.file\:px-4::file-selector-button{padding-left:1rem;padding-right:1rem}.file\:py-2::file-selector-button{padding-top:.5rem;padding-bottom:.5rem}.file\:text-sm::file-selector-button{font-size:.875rem;line-height:1.25rem}.file\:font-semibold::file-selector-button{font-weight:600}.file\:text-blue-700::file-selector-button{--tw-text-opacity:1;color:rgb(29 78 216/var(--tw-text-opacity,1))}.file\:text-white::file-selector-button{--tw-text-opacity:1;color:rgb(255 255 255/var(--tw-text-opacity,1))}.focus-within\:outline-none:focus-within{outline:2px solid transparent;outline-offset:2px}.focus-within\:ring-2:focus-within{--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow,0 0 #0000)}.focus-within\:ring-blue-500:focus-within{--tw-ring-opacity:1;--tw-ring-color:rgb(59 130 246/var(--tw-ring-opacity,1))}.focus-within\:ring-offset-2:focus-within{--tw-ring-offset-width:2px}.hover\:scale-105:hover{--tw-scale-x:1.05;--tw-scale-y:1.05}.hover\:scale-105:hover,.hover\:scale-\[1\.02\]:hover{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.hover\:scale-\[1\.02\]:hover{--tw-scale-x:1.02;--tw-scale-y:1.02}.hover\:border-blue-500:hover{--tw-border-opacity:1;border-color:rgb(59 130 246/var(--tw-border-opacity,1))}.hover\:border-green-500:hover{--tw-border-opacity:1;border-color:rgb(34 197 94/var(--tw-border-opacity,1))}.hover\:bg-blue-600:hover{--tw-bg-opacity:1;background-color:rgb(37 99 235/var(--tw-bg-opacity,1))}.hover\:bg-blue-700:hover{--tw-bg-opacity:1;background-color:rgb(29 78 216/var(--tw-bg-opacity,1))}.hover\:bg-gray-400:hover{--tw-bg-opacity:1;background-color:rgb(156 163 175/var(--tw-bg-opacity,1))}.hover\:bg-gray-700:hover{--tw-bg-opacity:1;background-color:rgb(55 65 81/var(--tw-bg-opacity,1))}.hover\:bg-green-600:hover{--tw-bg-opacity:1;background-color:rgb(22 163 74/var(--tw-bg-opacity,1))}.hover\:bg-green-700:hover{--tw-bg-opacity:1;background-color:rgb(21 128 61/var(--tw-bg-opacity,1))}.hover\:bg-indigo-700:hover{--tw-bg-opacity:1;background-color:rgb(67 56 202/var(--tw-bg-opacity,1))}.hover\:bg-purple-700:hover{--tw-bg-opacity:1;background-color:rgb(126 34 206/var(--tw-bg-opacity,1))}.hover\:bg-red-600:hover{--tw-bg-opacity:1;background-color:rgb(220 38 38/var(--tw-bg-opacity,1))}.hover\:bg-red-700:hover{--tw-bg-opacity:1;background-color:rgb(185 28 28/var(--tw-bg-opacity,1))}.hover\:bg-teal-600:hover{--tw-bg-opacity:1;background-color:rgb(13 148 136/var(--tw-bg-opacity,1))}.hover\:bg-yellow-600:hover{--tw-bg-opacity:1;background-color:rgb(202 138 4/var(--tw-bg-opacity,1))}.hover\:from-blue-600:hover{--tw-gradient-from:#2563eb var(--tw-gradient-from-position);--tw-gradient-to:rgba(37,99,235,0) var(--tw-gradient-to-position);--tw-gradient-stops:var(--tw-gradient-from),var(--tw-gradient-to)}.hover\:from-emerald-600:hover{--tw-gradient-from:#059669 var(--tw-gradient-from-position);--tw-gradient-to:rgba(5,150,105,0) var(--tw-gradient-to-position);--tw-gradient-stops:var(--tw-gradient-from),var(--tw-gradient-to)}.hover\:from-gray-900:hover{--tw-gradient-from:#111827 var(--tw-gradient-from-position);--tw-gradient-to:rgba(17,24,39,0) var(--tw-gradient-to-position);--tw-gradient-stops:var(--tw-gradient-from),var(--tw-gradient-to)}.hover\:from-green-600:hover{--tw-gradient-from:#16a34a var(--tw-gradient-from-position);--tw-gradient-to:rgba(22,163,74,0) var(--tw-gradient-to-position);--tw-gradient-stops:var(--tw-gradient-from),var(--tw-gradient-to)}.hover\:from-indigo-600:hover{--tw-gradient-from:#4f46e5 var(--tw-gradient-from-position);--tw-gradient-to:rgba(79,70,229,0) var(--tw-gradient-to-position);--tw-gradient-stops:var(--tw-gradient-from),var(--tw-gradient-to)}.hover\:from-pink-600:hover{--tw-gradient-from:#db2777 var(--tw-gradient-from-position);--tw-gradient-to:rgba(219,39,119,0) var(--tw-gradient-to-position);--tw-gradient-stops:var(--tw-gradient-from),var(--tw-gradient-to)}.hover\:from-purple-600:hover{--tw-gradient-from:#9333ea var(--tw-gradient-from-position);--tw-gradient-to:rgba(147,51,234,0) var(--tw-gradient-to-position);--tw-gradient-stops:var(--tw-gradient-from),var(--tw-gradient-to)}.hover\:from-red-600:hover{--tw-gradient-from:#dc2626 var(--tw-gradient-from-position);--tw-gradient-to:rgba(220,38,38,0) var(--tw-gradient-to-position);--tw-gradient-stops:var(--tw-gradient-from),var(--tw-gradient-to)}.hover\:from-red-700:hover{--tw-gradient-from:#b91c1c var(--tw-gradient-from-position);--tw-gradient-to:rgba(185,28,28,0) var(--tw-gradient-to-position);--tw-gradient-stops:var(--tw-gradient-from),var(--tw-gradient-to)}.hover\:from-yellow-600:hover{--tw-gradient-from:#ca8a04 var(--tw-gradient-from-position);--tw-gradient-to:rgba(202,138,4,0) var(--tw-gradient-to-position);--tw-gradient-stops:var(--tw-gradient-from),var(--tw-gradient-to)}.hover\:to-black:hover{--tw-gradient-to:#000 var(--tw-gradient-to-position)}.hover\:to-blue-700:hover{--tw-gradient-to:#1d4ed8 var(--tw-gradient-to-position)}.hover\:to-emerald-700:hover{--tw-gradient-to:#047857 var(--tw-gradient-to-position)}.hover\:to-green-700:hover{--tw-gradient-to:#15803d var(--tw-gradient-to-position)}.hover\:to-indigo-700:hover{--tw-gradient-to:#4338ca var(--tw-gradient-to-position)}.hover\:to-pink-700:hover{--tw-gradient-to:#be185d var(--tw-gradient-to-position)}.hover\:to-purple-700:hover{--tw-gradient-to:#7e22ce var(--tw-gradient-to-position)}.hover\:to-red-700:hover{--tw-gradient-to:#b91c1c var(--tw-gradient-to-position)}.hover\:to-yellow-700:hover{--tw-gradient-to:#a16207 var(--tw-gradient-to-position)}.hover\:text-blue-500:hover{--tw-text-opacity:1;color:rgb(59 130 246/var(--tw-text-opacity,1))}.hover\:text-blue-700:hover{--tw-text-opacity:1;color:rgb(29 78 216/var(--tw-text-opacity,1))}.hover\:text-gray-700:hover{--tw-text-opacity:1;color:rgb(55 65 81/var(--tw-text-opacity,1))}.hover\:text-red-700:hover{--tw-text-opacity:1;color:rgb(185 28 28/var(--tw-text-opacity,1))}.hover\:file\:bg-blue-100::file-selector-button:hover{--tw-bg-opacity:1;background-color:rgb(219 234 254/var(--tw-bg-opacity,1))}.hover\:file\:bg-teal-600::file-selector-button:hover{--tw-bg-opacity:1;background-color:rgb(13 148 136/var(--tw-bg-opacity,1))}.focus\:border-blue-500:focus{--tw-border-opacity:1;border-color:rgb(59 130 246/var(--tw-border-opacity,1))}.focus\:border-green-500:focus{--tw-border-opacity:1;border-color:rgb(34 197 94/var(--tw-border-opacity,1))}.focus\:outline-none:focus{outline:2px solid transparent;outline-offset:2px}.focus\:ring-2:focus{--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow,0 0 #0000)}.focus\:ring-blue-300:focus{--tw-ring-opacity:1;--tw-ring-color:rgb(147 197 253/var(--tw-ring-opacity,1))}.focus\:ring-blue-500:focus{--tw-ring-opacity:1;--tw-ring-color:rgb(59 130 246/var(--tw-ring-opacity,1))}.focus\:ring-green-500:focus{--tw-ring-opacity:1;--tw-ring-color:rgb(34 197 94/var(--tw-ring-opacity,1))}.focus\:ring-red-500:focus{--tw-ring-opacity:1;--tw-ring-color:rgb(239 68 68/var(--tw-ring-opacity,1))}.focus\:ring-teal-500:focus{--tw-ring-opacity:1;--tw-ring-color:rgb(20 184 166/var(--tw-ring-opacity,1))}.focus\:ring-offset-2:focus{--tw-ring-offset-width:2px}.active\:scale-95:active{--tw-scale-x:.95;--tw-scale-y:.95}.active\:scale-95:active,.group:hover .group-hover\:-translate-x-1{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.group:hover .group-hover\:-translate-x-1{--tw-translate-x:-0.25rem}.group:hover .group-hover\:rotate-180{--tw-rotate:180deg}.group:hover .group-hover\:rotate-180,.group:hover .group-hover\:scale-105{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.group:hover .group-hover\:scale-105{--tw-scale-x:1.05;--tw-scale-y:1.05}.group:hover .group-hover\:bg-white\/30{background-color:hsla(0,0%,100%,.3)}.group:hover .group-hover\:text-yellow-400{--tw-text-opacity:1;color:rgb(250 204 21/var(--tw-text-opacity,1))}.dark\:bg-blue-100:is(.dark *){--tw-bg-opacity:1;background-color:rgb(219 234 254/var(--tw-bg-opacity,1))}.dark\:bg-blue-900:is(.dark *){--tw-bg-opacity:1;background-color:rgb(30 58 138/var(--tw-bg-opacity,1))}.dark\:bg-gray-700:is(.dark *){--tw-bg-opacity:1;background-color:rgb(55 65 81/var(--tw-bg-opacity,1))}.dark\:bg-gray-800:is(.dark *){--tw-bg-opacity:1;background-color:rgb(31 41 55/var(--tw-bg-opacity,1))}.dark\:bg-gray-900:is(.dark *){--tw-bg-opacity:1;background-color:rgb(17 24 39/var(--tw-bg-opacity,1))}.dark\:from-green-700:is(.dark *){--tw-gradient-from:#15803d var(--tw-gradient-from-position);--tw-gradient-to:rgba(21,128,61,0) var(--tw-gradient-to-position);--tw-gradient-stops:var(--tw-gradient-from),var(--tw-gradient-to)}.dark\:via-red-700:is(.dark *){--tw-gradient-to:rgba(185,28,28,0) var(--tw-gradient-to-position);--tw-gradient-stops:var(--tw-gradient-from),#b91c1c var(--tw-gradient-via-position),var(--tw-gradient-to)}.dark\:to-blue-900:is(.dark *){--tw-gradient-to:#1e3a8a var(--tw-gradient-to-position)}.dark\:text-gray-100:is(.dark *){--tw-text-opacity:1;color:rgb(243 244 246/var(--tw-text-opacity,1))}.dark\:text-gray-400:is(.dark *){--tw-text-opacity:1;color:rgb(156 163 175/var(--tw-text-opacity,1))}.dark\:text-green-300:is(.dark *){--tw-text-opacity:1;color:rgb(134 239 172/var(--tw-text-opacity,1))}.dark\:text-pink-300:is(.dark *){--tw-text-opacity:1;color:rgb(249 168 212/var(--tw-text-opacity,1))}.dark\:text-red-300:is(.dark *){--tw-text-opacity:1;color:rgb(252 165 165/var(--tw-text-opacity,1))}.dark\:text-white:is(.dark *){--tw-text-opacity:1;color:rgb(255 255 255/var(--tw-text-opacity,1))}.dark\:hover\:border-blue-400:hover:is(.dark *){--tw-border-opacity:1;border-color:rgb(96 165 250/var(--tw-border-opacity,1))}.dark\:hover\:border-green-500:hover:is(.dark *){--tw-border-opacity:1;border-color:rgb(34 197 94/var(--tw-border-opacity,1))}.dark\:hover\:text-blue-300:hover:is(.dark *){--tw-text-opacity:1;color:rgb(147 197 253/var(--tw-text-opacity,1))}@media (min-width:640px){.sm\:px-6{padding-left:1.5rem;padding-right:1.5rem}.sm\:text-sm{font-size:.875rem;line-height:1.25rem}}@media (min-width:768px){.md\:col-span-2{grid-column:span 2/span 2}.md\:inline{display:inline}.md\:w-1\/2{width:50%}.md\:w-1\/3{width:33.333333%}.md\:w-2\/3{width:66.666667%}.md\:grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.md\:grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}.md\:flex-row{flex-direction:row}.md\:items-end{align-items:flex-end}.md\:gap-16{gap:4rem}.md\:space-x-4>:not([hidden])~:not([hidden]){--tw-space-x-reverse:0;margin-right:calc(1rem*var(--tw-space-x-reverse));margin-left:calc(1rem*(1 - var(--tw-space-x-reverse)))}.md\:space-y-0>:not([hidden])~:not([hidden]){--tw-space-y-reverse:0;margin-top:calc(0px*(1 - var(--tw-space-y-reverse)));margin-bottom:calc(0px*var(--tw-space-y-reverse))}}@media (min-width:1024px){.lg\:w-1\/2{width:50%}.lg\:w-1\/3{width:33.333333%}.lg\:w-1\/4{width:25%}.lg\:max-w-md{max-width:28rem}.lg\:grid-cols-4{grid-template-columns:repeat(4,minmax(0,1fr))}.lg\:flex-row{flex-direction:row}.lg\:px-8{padding-left:2rem;padding-right:2rem}}

/* styles/language-direction.css */

/* =========================================================
   LANGUAGE DIRECTION SUPPORT
   Arabic = right-to-left; all other supported languages = left-to-right
   ========================================================= */
html[lang="ar"],
html[dir="rtl"],
body[dir="rtl"] {
    direction: rtl;
}

html[lang="ar"] body,
html[dir="rtl"] body,
body[dir="rtl"] {
    text-align: right;
}

html[lang="ar"] [data-translate],
html[lang="ar"] [data-i18n],
html[lang="ar"] [data-translate-placeholder],
html[dir="rtl"] [data-translate],
html[dir="rtl"] [data-i18n],
html[dir="rtl"] [data-translate-placeholder],
body[dir="rtl"] [data-translate],
body[dir="rtl"] [data-i18n],
body[dir="rtl"] [data-translate-placeholder] {
    direction: rtl;
    text-align: right;
    unicode-bidi: plaintext;
}

html[lang="ar"] input,
html[lang="ar"] textarea,
html[lang="ar"] select,
html[dir="rtl"] input,
html[dir="rtl"] textarea,
html[dir="rtl"] select,
body[dir="rtl"] input,
body[dir="rtl"] textarea,
body[dir="rtl"] select {
    direction: rtl;
    text-align: right;
}

/* Keep navigation geometry and icon order unchanged in Arabic. */
html[lang="ar"] .sidebar-wrapper,
html[lang="ar"] .sidebar-main,
html[lang="ar"] aside#sidebar-main,
html[lang="ar"] #mobile-bottom-nav,
html[dir="rtl"] .sidebar-wrapper,
html[dir="rtl"] .sidebar-main,
html[dir="rtl"] aside#sidebar-main,
html[dir="rtl"] #mobile-bottom-nav,
body[dir="rtl"] .sidebar-wrapper,
body[dir="rtl"] .sidebar-main,
body[dir="rtl"] aside#sidebar-main,
body[dir="rtl"] #mobile-bottom-nav {
    direction: ltr;
}

html[lang="ar"] .sidebar-main,
html[dir="rtl"] .sidebar-main,
body[dir="rtl"] .sidebar-main {
    left: 0;
    right: auto;
}

html[lang="ar"] .sidebar-main [data-translate],
html[dir="rtl"] .sidebar-main [data-translate],
body[dir="rtl"] .sidebar-main [data-translate] {
    direction: rtl;
    text-align: right;
}

html[lang="ar"] th,
html[lang="ar"] td,
html[dir="rtl"] th,
html[dir="rtl"] td,
body[dir="rtl"] th,
body[dir="rtl"] td {
    text-align: right;
}

html[lang="ar"] button,
html[lang="ar"] .btn,
html[dir="rtl"] button,
html[dir="rtl"] .btn,
body[dir="rtl"] button,
body[dir="rtl"] .btn {
    unicode-bidi: plaintext;
}

.numeric,
.price,
.amount,
.barcode,
.sku,
.code,
.date,
.number,
input[type="number"] {
    direction: ltr;
    unicode-bidi: plaintext;
}

html[lang="en"],
html[lang="fr"],
html[lang="zh"],
html[dir="ltr"],
body[dir="ltr"] {
    direction: ltr;
}

html[lang="en"] body,
html[lang="fr"] body,
html[lang="zh"] body,
html[dir="ltr"] body,
body[dir="ltr"] {
    text-align: left;
}

/* css/fontawesome-simple.css */
/* css/fontawesome-simple.css - Essential FontAwesome icons for StocksalesApp */

/* Base FontAwesome styles */
.fas, .far, .fab, .fa {
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    font-style: normal;
    font-variant: normal;
    text-rendering: auto;
    display: inline-block;
    line-height: 1;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.far {
    font-weight: 400;
}

.fab {
    font-family: 'Font Awesome 6 Brands';
}

/* Navigation & Layout */
.fa-bars:before { content: "\f0c9"; }
.fa-user:before { content: "\f007"; }
.fa-cog:before { content: "\f013"; }
.fa-sign-out-alt:before { content: "\f2f5"; }
.fa-home:before { content: "\f015"; }
.fa-chart-bar:before { content: "\f080"; }
.fa-shopping-cart:before { content: "\f07a"; }
.fa-box:before { content: "\f466"; }
.fa-users:before { content: "\f0c0"; }
.fa-file-invoice:before { content: "\f570"; }

/* Actions */
.fa-plus:before { content: "\2b"; }
.fa-plus-circle:before { content: "\f055"; }
.fa-plus-square:before { content: "\f0fe"; }
.fa-edit:before { content: "\f044"; }
.fa-trash:before { content: "\f1f8"; }
.fa-search:before { content: "\f002"; }
.fa-print:before { content: "\f02f"; }
.fa-download:before { content: "\f019"; }
.fa-upload:before { content: "\f093"; }
.fa-sync:before { content: "\f021"; }
.fa-check:before { content: "\f00c"; }
.fa-times:before { content: "\f00d"; }
.fa-save:before { content: "\f0c7"; }
.fa-undo:before { content: "\f0e2"; }
.fa-redo:before { content: "\f01e"; }

/* Alerts & Status */
.fa-exclamation-triangle:before { content: "\f071"; }
.fa-info-circle:before { content: "\f05a"; }
.fa-question-circle:before { content: "\f059"; }
.fa-check-circle:before { content: "\f058"; }
.fa-times-circle:before { content: "\f057"; }
.fa-exclamation-circle:before { content: "\f06a"; }
.fa-bell:before { content: "\f0f3"; }
.fa-bell-slash:before { content: "\f1f6"; }

/* Arrows & Navigation */
.fa-chevron-left:before { content: "\f053"; }
.fa-chevron-right:before { content: "\f054"; }
.fa-chevron-up:before { content: "\f077"; }
.fa-chevron-down:before { content: "\f078"; }
.fa-arrow-left:before { content: "\f060"; }
.fa-arrow-right:before { content: "\f061"; }
.fa-arrow-up:before { content: "\f062"; }
.fa-arrow-down:before { content: "\f063"; }
.fa-long-arrow-alt-left:before { content: "\f30a"; }
.fa-long-arrow-alt-right:before { content: "\f30b"; }

/* Commerce & Inventory */
.fa-money-bill:before { content: "\f0d6"; }
.fa-credit-card:before { content: "\f09d"; }
.fa-receipt:before { content: "\f543"; }
.fa-chart-line:before { content: "\f201"; }
.fa-chart-pie:before { content: "\f200"; }
.fa-chart-area:before { content: "\f1fe"; }
.fa-tags:before { content: "\f02c"; }
.fa-tag:before { content: "\f02b"; }
.fa-percentage:before { content: "\f541"; }
.fa-calculator:before { content: "\f1ec"; }
.fa-barcode:before { content: "\f02a"; }
.fa-qrcode:before { content: "\f029"; }
.fa-box-open:before { content: "\f49e"; }
.fa-pallet:before { content: "\f482"; }
.fa-warehouse:before { content: "\f494"; }
.fa-truck:before { content: "\f0d1"; }
.fa-shipping-fast:before { content: "\f48b"; }
.fa-dolly:before { content: "\f472"; }
.fa-conveyor-belt:before { content: "\f46e"; }
.fa-weight:before { content: "\f496"; }
.fa-ruler:before { content: "\f545"; }
.fa-cube:before { content: "\f1b2"; }
.fa-cubes:before { content: "\f1b3"; }

/* Security & Authentication */
.fa-lock:before { content: "\f023"; }
.fa-unlock:before { content: "\f09c"; }
.fa-eye:before { content: "\f06e"; }
.fa-eye-slash:before { content: "\f070"; }
.fa-shield-alt:before { content: "\f3ed"; }
.fa-key:before { content: "\f084"; }
.fa-fingerprint:before { content: "\f577"; }

/* Data & Files */
.fa-database:before { content: "\f1c0"; }
.fa-file-excel:before { content: "\f1c3"; }
.fa-file-pdf:before { content: "\f1c1"; }
.fa-file-csv:before { content: "\f6dd"; }
.fa-file-export:before { content: "\f56e"; }
.fa-file-import:before { content: "\f56f"; }
.fa-file-alt:before { content: "\f15c"; }
.fa-file-invoice-dollar:before { content: "\f571"; }
.fa-file-contract:before { content: "\f56c"; }
.fa-cloud-download-alt:before { content: "\f381"; }
.fa-cloud-upload-alt:before { content: "\f382"; }
.fa-archive:before { content: "\f187"; }
.fa-folder:before { content: "\f07b"; }
.fa-folder-open:before { content: "\f07c"; }

/* UI Controls */
.fa-filter:before { content: "\f0b0"; }
.fa-sort:before { content: "\f0dc"; }
.fa-sort-up:before { content: "\f0de"; }
.fa-sort-down:before { content: "\f0dd"; }
.fa-caret-down:before { content: "\f0d7"; }
.fa-caret-up:before { content: "\f0d8"; }
.fa-caret-left:before { content: "\f0d9"; }
.fa-caret-right:before { content: "\f0da"; }
.fa-ellipsis-h:before { content: "\f141"; }
.fa-ellipsis-v:before { content: "\f142"; }
.fa-external-link-alt:before { content: "\f35d"; }
.fa-expand:before { content: "\f065"; }
.fa-compress:before { content: "\f066"; }
.fa-window-maximize:before { content: "\f2d0"; }
.fa-window-minimize:before { content: "\f2d1"; }
.fa-window-restore:before { content: "\f2d2"; }
.fa-clone:before { content: "\f24d"; }
.fa-copy:before { content: "\f0c5"; }
.fa-paste:before { content: "\f0ea"; }
.fa-cut:before { content: "\f0c4"; }

/* Communication */
.fa-envelope:before { content: "\f0e0"; }
.fa-envelope-open:before { content: "\f2b6"; }
.fa-paper-plane:before { content: "\f1d8"; }
.fa-comment:before { content: "\f075"; }
.fa-comments:before { content: "\f086"; }
.fa-phone:before { content: "\f095"; }

/* Time & Date */
.fa-calendar:before { content: "\f073"; }
.fa-calendar-alt:before { content: "\f073"; }
.fa-clock:before { content: "\f017"; }
.fa-hourglass-start:before { content: "\f251"; }
.fa-hourglass-half:before { content: "\f252"; }
.fa-hourglass-end:before { content: "\f253"; }
.fa-stopwatch:before { content: "\f2f2"; }

/* Status Indicators */
.fa-circle:before { content: "\f111"; }
.fa-dot-circle:before { content: "\f192"; }
.fa-play-circle:before { content: "\f144"; }
.fa-pause-circle:before { content: "\f28b"; }
.fa-stop-circle:before { content: "\f28d"; }
.fa-ban:before { content: "\f05e"; }
.fa-minus-circle:before { content: "\f056"; }

/* Product & Supplier Management */
.fa-industry:before { content: "\f275"; }
.fa-building:before { content: "\f1ad"; }
.fa-address-book:before { content: "\f2b9"; }
.fa-id-card:before { content: "\f2c2"; }
.fa-truck-loading:before { content: "\f4de"; }
.fa-parachute-box:before { content: "\f4cd"; }
.fa-boxes:before { content: "\f468"; }

/* Analytics & Reports */
.fa-chart-line:before { content: "\f201"; }
.fa-chart-bar:before { content: "\f080"; }
.fa-chart-pie:before { content: "\f200"; }
.fa-chart-area:before { content: "\f1fe"; }
.fa-trend-up:before { content: "\f201"; }
.fa-trend-down:before { content: "\f201"; }
.fa-signal:before { content: "\f012"; }
.fa-tachometer-alt:before { content: "\f3fd"; }

/* Utility */
.fa-cog:before { content: "\f013"; }
.fa-cogs:before { content: "\f085"; }
.fa-tools:before { content: "\f7d9"; }
.fa-wrench:before { content: "\f0ad"; }
.fa-sliders-h:before { content: "\f1de"; }
.fa-history:before { content: "\f1da"; }
.fa-redo-alt:before { content: "\f2f9"; }
.fa-undo-alt:before { content: "\f2ea"; }
.fa-bolt:before { content: "\f0e7"; }
.fa-fire:before { content: "\f06d"; }
.fa-star:before { content: "\f005"; }
.fa-star-half:before { content: "\f089"; }
.fa-heart:before { content: "\f004"; }

/* Stock Status & Alerts */
.fa-exclamation:before { content: "\f12a"; }
.fa-low-vision:before { content: "\f2a8"; }
.fa-radiation:before { content: "\f7b9"; }
.fa-skull-crossbones:before { content: "\f714"; }
.fa-biohazard:before { content: "\f780"; }

/* Location & Geography */
.fa-map-marker:before { content: "\f041"; }
.fa-map-marker-alt:before { content: "\f3c5"; }
.fa-globe:before { content: "\f0ac"; }
.fa-flag:before { content: "\f024"; }

/* Responsive & Mobile */
.fa-mobile-alt:before { content: "\f3cd"; }
.fa-tablet-alt:before { content: "\f3fa"; }
.fa-desktop:before { content: "\f108"; }
.fa-laptop:before { content: "\f109"; }

/* Categories & Organization */
.fa-layer-group:before { content: "\f5fd"; }
.fa-sitemap:before { content: "\f0e8"; }
.fa-project-diagram:before { content: "\f542"; }
.fa-stream:before { content: "\f550"; }

/* styles/navbar.css */
/* Sidebar Component Styles */

/* ============================================
   BASE SIDEBAR CONTAINER & LAYOUT
   ============================================ */

.sidebar-wrapper {
      position: fixed;
    width: 100%;
    height: 100%;
        top: 0;
    left: 0;
    
}

.sidebar-main {
    position: fixed;
    left: 0;
    top: 0;
    bottom: 0;
    z-index: 9998;
    width: 280px;
    height: 100vh;
    background: linear-gradient(180deg, #1a1a1a 0%, #2d2d2d 100%);
    border-right: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 4px 0 12px rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    overflow-x: hidden;
    transition: transform 0.3s ease, width 0.3s ease;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* Sidebar overlay for mobile */
.sidebar-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9997;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.sidebar-overlay.active {
    display: block;
    opacity: 1;
}

/* ============================================
   SIDEBAR HEADER / BRANDING
   ============================================ */
.sidebar-header {
    flex-shrink: 0;
    padding: 1.5rem 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(0, 0, 0, 0.2);
}

.sidebar-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    color: #ffffff;
    transition: all 0.3s ease;
}

.sidebar-brand:hover {
    color: #60a5fa;
}

.sidebar-logo {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}
.mobile-sidebar-logo {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.sidebar-brand:hover .sidebar-logo {
    border-color: #60a5fa;
    box-shadow: 0 0 12px rgba(96, 165, 250, 0.3);
}

.sidebar-app-name {
    font-weight: 700;
    font-size: 1.1rem;
    white-space: nowrap;
}

/* ============================================
   SIDEBAR NAVIGATION
   ============================================ */
.sidebar-nav {
    flex: 1 1 auto;
    padding: 1rem 0;
    margin: 0;
}

.nav-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.nav-item {
    display: flex;
    align-items: center;
    padding: 0 0.75rem;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    width: 100%;
    padding: 0.75rem 1rem;
    color: #e5e7eb;
    text-decoration: none;
    background: transparent;
    border: none;
    cursor: pointer;
    border-radius: 0.5rem;
    transition: all 0.3s ease;
    font-size: 0.95rem;
    font-weight: 500;
    font-family: inherit;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.nav-link i {
    font-size: 1.25rem;
    display: inline-flex;
    align-items: center;
    width: 24px;
    justify-content: center;
    flex-shrink: 0;
}

.nav-label {
    flex: 1 1 auto;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.nav-link:hover {
    background: rgba(96, 165, 250, 0.1);
    color: #60a5fa;
    border-left: 3px solid #60a5fa;
    padding-left: calc(1rem - 3px);
}

.nav-link:active {
    background: rgba(96, 165, 250, 0.2);
    color: #3b82f6;
}

/* ============================================
   SIDEBAR FOOTER / USER & LOGOUT
   ============================================ */
.sidebar-footer {
    flex-shrink: 0;
    padding: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.user-section {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem;
    border-radius: 0.5rem;
    background: rgba(255, 255, 255, 0.05);
}

.user-avatar {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    min-width: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, #60a5fa 0%, #3b82f6 100%);
    color: white;
    font-size: 1.1rem;
}

.user-info {
    flex: 1 1 auto;
    overflow: hidden;
}

.user-name {
    font-weight: 600;
    color: #ffffff;
    font-size: 0.9rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.user-role {
    font-size: 0.75rem;
    color: #9ca3af;
    margin-top: 0.2rem;
}

.sidebar-logout-btn {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    width: 100%;
    padding: 0.75rem 1rem;
    background: rgba(239, 68, 68, 0.1);
    color: #fca5a5;
    border: 1px solid rgba(239, 68, 68, 0.3);
    border-radius: 0.5rem;
    cursor: pointer;
    font-weight: 500;
    font-size: 0.9rem;
    font-family: inherit;
    transition: all 0.3s ease;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sidebar-logout-btn:hover {
    background: rgba(239, 68, 68, 0.2);
    color: #f87171;
    border-color: rgba(239, 68, 68, 0.5);
}

.sidebar-logout-btn i {
    font-size: 1.1rem;
    flex-shrink: 0;
}

.logout-label {
    flex: 1 1 auto;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ============================================
   SIDEBAR COLLAPSE BUTTON (Desktop)
   ============================================ */
.sidebar-collapse-btn {
    position: absolute;
    bottom: 80px;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(96, 165, 250, 0.1);
    border: 1px solid rgba(96, 165, 250, 0.3);
    color: #60a5fa;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    font-size: 1rem;
}

.sidebar-collapse-btn:hover {
    background: rgba(96, 165, 250, 0.2);
    border-color: #60a5fa;
    transform: translateX(-50%) scale(1.1);
}

/* Hide on small screens */
@media (max-width: 768px) {
    .sidebar-collapse-btn {
        display: none;
    }
}

/* ============================================
   SIDEBAR TOGGLE BUTTON (Mobile)
   ============================================ */
.sidebar-toggle {
    display: none;
    position: fixed;
    top: 1rem;
    left: 1rem;
    z-index: 9999;
    width: 48px;
    height: 48px;
    border-radius: 0.5rem;
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #ffffff;
    cursor: pointer;
    font-size: 1.25rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.sidebar-toggle:hover {
    background: rgba(96, 165, 250, 0.1);
    border-color: #60a5fa;
    color: #60a5fa;
}

.sidebar-toggle.active {
    background: rgba(96, 165, 250, 0.2);
    border-color: #60a5fa;
    color: #60a5fa;
}

.desktop-sidebar-toggle {
    display: none;
}

@media (min-width: 769px) {
    .desktop-sidebar-toggle {
        display: flex;
        position: fixed;
        left: 262px;
        top: 24px;
        width: 34px;
        height: 34px;
        border-radius: 9999px;
        border: 1px solid rgba(226, 232, 240, 0.85);
        background: #ffffff;
        color: #1f2937;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        z-index: 10000;
        transition: transform 0.3s ease, left 0.3s ease, background-color 0.3s ease;
        box-shadow: 0 8px 18px rgba(15, 23, 42, 0.12);
    }

    .desktop-sidebar-toggle:hover {
        background: #f8fafc;
    }

    .desktop-sidebar-toggle .toggle-icon {
        display: inline-block;
        font-size: 1rem;
        line-height: 1;
        transition: transform 0.3s ease;
    }

    .sidebar-main.sidebar-hidden {
        transform: translateX(-100%);
    }

    .sidebar-main.sidebar-hidden + .desktop-sidebar-toggle .toggle-icon,
    .desktop-sidebar-toggle.collapsed .toggle-icon {
        transform: rotate(180deg);
    }

    .sidebar-main.sidebar-hidden + .desktop-sidebar-toggle,
    .desktop-sidebar-toggle.collapsed {
        left: 0;
    }
}

/* Show on mobile */
@media (max-width: 768px) {
    .sidebar-toggle {
        display: none;
        align-items: center;
        justify-content: center;
    }
 .modal-close-btn {
        display: none !important;

    }
    .desktop-sidebar-toggle {
        display: none;
    }
    .desktop-sidebar-toggle{
        display: none !important;
    }
    
}

/* ============================================
   MOBILE RESPONSIVE (≤768px)
   ============================================ */
@media (max-width: 768px) {
    .sidebar-main {
        width: 240px;
        transform: translateX(-100%);
        transition: transform 0.3s ease;
    }

    .sidebar-main.active {
        transform: translateX(0);
    }

    body {
        padding-left: 0 !important;
    }
}

/* ============================================
   TABLET/DESKTOP VARIATIONS
   ============================================ */
@media (max-width: 1024px) {
    .sidebar-main {
        width: 240px;
    }
}

@media (min-width: 1025px) {
    .sidebar-main {
        width: 280px;
    }
}

/* ============================================
   SIDEBAR COLLAPSED STATE (Desktop)
   ============================================ */
.sidebar-main.collapsed {
    width: 80px;
}

.sidebar-main.collapsed .sidebar-header {
    padding: 1rem 0.5rem;
}

.sidebar-main.collapsed .sidebar-brand {
    justify-content: center;
    flex-direction: column;
    gap: 0.25rem;
}

.sidebar-main.collapsed .sidebar-app-name {
    font-size: 0.65rem;
    text-align: center;
    line-height: 1;
}

.sidebar-main.collapsed .nav-link {
    justify-content: center;
    padding: 0.75rem 0.5rem;
}

.sidebar-main.collapsed .nav-label,
.sidebar-main.collapsed .logout-label {
    display: none;
}

.sidebar-main.collapsed .sidebar-footer {
    padding: 0.75rem 0.5rem;
}

.sidebar-main.collapsed .user-section {
    justify-content: center;
    margin: 0 auto;
}

.sidebar-main.collapsed .user-info {
    display: none;
}

/* Update body padding when sidebar is collapsed */
.sidebar-main.collapsed ~ body {
    padding-left: 80px;
}

/* Very small screens */
@media (max-width: 375px) {
    .sidebar-main {
        width: 200px;
    }
}

/* ============================================
   SCROLLBAR STYLING
   ============================================ */
.sidebar-main::-webkit-scrollbar {
    width: 6px;
}

.sidebar-main::-webkit-scrollbar-track {
    background: transparent;
}

.sidebar-main::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
}

.sidebar-main::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* ============================================
   ANIMATIONS
   ============================================ */
@keyframes slideIn {
    from {
        transform: translateX(-100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.sidebar-wrapper {
    animation: fadeIn 0.3s ease;
}

/* ============================================
   PRINT STYLES - Hide sidebar when printing
   ============================================ */
@media print {
    .sidebar-wrapper {
        display: none;
    }

    body {
        padding-left: 0 !important;
    }
}

/* ============================================
   ACCESSIBILITY
   ============================================ */
.sidebar-toggle:focus,
.sidebar-logout-btn:focus,
.nav-link:focus,
.sidebar-brand:focus,
.sidebar-collapse-btn:focus {
    outline: 2px solid #60a5fa;
    outline-offset: 2px;
}

.sidebar-toggle:focus {
    outline-offset: -2px;
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
.nav-link .notification-dot {
    display: inline-block;
    margin-left: 8px;
    width: 8px;
    height: 8px;
    background-color: red;
    border-radius: 50%;
    /* no absolute positioning */
}






/* The "Flying" Blue Background Logic */
.background-container {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: 1;
}

.blob {
    position: absolute;
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    filter: blur(80px);
    border-radius: 50%;
    opacity: 0.6;
    animation: flying 20s infinite alternate ease-in-out;
}

.blob-1 {
    width: min(500px, 80vw);
    height: min(500px, 80vw);
    top: -10%;
    left: -10%;
    animation-duration: 15s;
}

.blob-2 {
    width: min(400px, 70vw);
    height: min(400px, 70vw);
    bottom: -5%;
    right: -5%;
    background: linear-gradient(135deg, #60a5fa 0%, #2563eb 100%);
    animation-duration: 22s;
    animation-delay: -5s;
}

@keyframes flying {
    0% { transform: translate(0, 0) scale(1) rotate(0deg); }
    33% { transform: translate(10vw, 20vh) scale(1.2) rotate(120deg); }
    66% { transform: translate(-5vw, 35vh) scale(0.8) rotate(240deg); }
    100% { transform: translate(15vw, -10vh) scale(1.1) rotate(360deg); }
}

/* The Looping Text Animation */
.stock-app-text {
    font-size: clamp(2.5rem, 8vw, 8rem);
    font-weight: 800;
    background: linear-gradient(135deg, #ffffff 0%, #93c5fd 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: whitesmoke;
    letter-spacing: -0.03em;
    text-shadow: 0 0 30px rgba(59, 130, 246, 0.3);
    
}

.text-gradient {
    background: linear-gradient(135deg, #60a5fa 0%, #2563eb 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}



/* Mobile adjustments */
@media (max-width: 640px) {

    
    @keyframes appearHideMobile {
        0%, 15% {
            opacity: 0;
            transform: scale(0.95) translateY(15px);
            filter: blur(5px);
        }
        35%, 65% {
            opacity: 1;
            transform: scale(1) translateY(0);
            filter: blur(0px);
        }
        85%, 100% {
            opacity: 0;
            transform: scale(1.03) translateY(-15px);
            filter: blur(5px);
        }
    }
}

/* ============================================
   MOBILE BOTTOM NAVIGATION (≤768px)
   ============================================ */
.mobile-bottom-nav {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(180deg, #1a1a1a 0%, #2d2d2d 100%);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    justify-content: space-around;
    align-items: center;
    padding: 8px 12px;
    padding-bottom: max(8px, env(safe-area-inset-bottom));
    z-index: 9999;
    box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.3);
}

@media (max-width: 768px) {
    .mobile-bottom-nav {
        display: flex;
    }
    
    body {
        padding-bottom: 70px;
    }
}

.mobile-nav-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    background: none;
    border: none;
    color: #ffffff;
    cursor: pointer;
    padding: 6px 12px;
    border-radius: 8px;
    transition: all 0.2s ease;
    font-size: 12px;
    position: relative;
}

.mobile-nav-btn i {
    font-size: 22px;
}

.mobile-nav-btn span {
    font-size: 11px;
    font-weight: 500;
}

.mobile-nav-btn.active {
    color: #ffffff;
    background: rgba(96, 165, 250, 0.1);
}

.mobile-nav-btn:active {
    transform: scale(0.95);
}

.mobile-notification-dot {
    position: absolute;
    top: 2px;
    right: 10px;
    width: 8px;
    height: 8px;
    background-color: #ef4444;
    border-radius: 50%;
    border: 1px solid #1a1a1a;
}

/* Mobile Drawer */
.mobile-drawer {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10000;
    display: flex;
    align-items: flex-end;
}

.mobile-drawer.hidden {
    display: none;
}

.mobile-drawer-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    animation: fadeIn 0.2s ease;
}

.mobile-drawer-content {
    position: relative;
    width: 100%;
    background: linear-gradient(180deg, #1a1a1a 0%, #2d2d2d 100%);
    border-radius: 20px 20px 0 0;
    padding: 20px;
    animation: slideUp 0.3s ease;
    max-height: 80vh;
    overflow-y: auto;
     padding-bottom: 73px !important;
}

@keyframes slideUp {
    from {
        transform: translateY(100%);
    }
    to {
        transform: translateY(0);
    }
}

.mobile-drawer-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 16px;
    margin-bottom: 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.mobile-drawer-header span {
    color: #ffffff;
    font-size: 18px;
    font-weight: 600;
    margin: 0;
}

.mobile-drawer-close {
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: #ffffff;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.mobile-drawer-close:active {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(0.95);
}

.mobile-drawer-items {
    display: flex;
    flex-direction: column;
    gap: 8px;
     z-index: 2147483647 !important;
}

.mobile-drawer-item {
    display: flex;
    align-items: center;
    gap: 16px;
    background: rgba(255, 255, 255, 0.05);
    border: none;
    padding: 14px 16px;
    border-radius: 12px; 
    color: #e5e7eb;
    cursor: pointer;
    transition: all 0.2s ease;
    width: 100%;
    text-align: left;
    font-size: 16px;
   
}
#mobilehomeBusinessname {
    display: flex;
    align-items: center;
    gap: 16px;
    background: rgba(255, 255, 255, 0.05);
    border: none;
    padding: 14px 16px;
    border-radius: 12px; 
    color: #e5e7eb;
    cursor: pointer;
    transition: all 0.2s ease;
    width: 100%;
    text-align: left;
    font-size: 16px;
   
}

.mobile-drawer-item i {
    width: 24px;
    font-size: 20px;
    color: #ffffff;
}

.mobile-drawer-item:active {
    background: rgba(96, 165, 250, 0.15);
    transform: scale(0.98);
}

#mobile-bottom-nav {
    z-index: 2147483646 !important;
  position: fixed !important;
  bottom: 0 !important;
  left: 0 !important;
  right: 0 !important;
}

#mobile-drawer, 
.mobile-drawer-content {
    z-index: 2147483647 !important;
}
#mobile-drawer {
  z-index: 2147483647 !important;
}
/* ============================================
   PROFESSIONAL SIDEBAR STYLES
   ============================================ */

:root {
    --sidebar-width: 280px;
    --sidebar-collapsed-width: 80px;
    --sidebar-bg: #1a1a2e;
    --sidebar-bg-hover: #16213e;
    --sidebar-text: #e2e8f0;
    --sidebar-text-muted: #94a3b8;
    --sidebar-active: #4f46e5;
    --sidebar-active-bg: rgba(79, 70, 229, 0.15);
    --sidebar-border: rgba(255, 255, 255, 0.06);
    --sidebar-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    --transition-speed: 0.3s;
}


/* Overlay */
.sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-speed);
    z-index: 999;
}

.sidebar-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Main Sidebar Container */
.sidebar-main {
    width: var(--sidebar-width);
    height: 100vh;
    display: flex;
    flex-direction: column;
    position: relative;
    z-index: 1000;
    background: linear-gradient(180deg, #1a1a1a 0%, #2d2d2d 100%);
    border-right: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 4px 0 12px rgba(0, 0, 0, 0.3);
    transition: all var(--transition-speed) cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
}

/* Sidebar Header / Brand */
.sidebar-header {
    padding: 20px 24px;
    border-bottom: 1px solid var(--sidebar-border);
    flex-shrink: 0;
}

.sidebar-brand {
    display: flex;
    align-items: center;
    gap: 14px;
    text-decoration: none;
    color: var(--sidebar-text);
    transition: opacity 0.2s;
}

.sidebar-brand:hover {
    opacity: 0.9;
}

.brand-logo-wrapper {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    overflow: hidden;
    flex-shrink: 0;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid var(--sidebar-border);
    display: flex;
    align-items: center;
    justify-content: center;
}

.sidebar-logo {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.sidebar-app-name {
    font-size: 20px;
    font-weight: 700;
    letter-spacing: -0.5px;
    color: var(--sidebar-text);
    white-space: nowrap;
}

/* Navigation */
.sidebar-nav {
    flex: 1;
    overflow-y: auto;
    padding: 16px 12px;
}

.sidebar-nav::-webkit-scrollbar {
    width: 4px;
}

.sidebar-nav::-webkit-scrollbar-thumb {
    background: var(--sidebar-active);
    border-radius: 10px;
}

.nav-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.nav-item {
    display: flex;
    align-items: center;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 16px;
    border-radius: 12px;
    color: white;
    text-decoration: none;
    width: 100%;
    transition: all 0.2s ease;
    position: relative;
    font-weight: 500;
    font-size: 14px;
}

.nav-link:hover {
    background: var(--sidebar-active-bg);
    color: var(--sidebar-text);
}

.nav-link.active {
    background: var(--sidebar-active-bg);
    color: var(--sidebar-active);
}

.nav-link.active .nav-icon svg {
    stroke: var(--sidebar-active);
}

.nav-icon {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.nav-icon svg {
    width: 22px;
    height: 22px;
    stroke: currentColor;
    transition: stroke 0.2s;
}

.nav-label {
    white-space: nowrap;
    transition: opacity 0.2s;
}

.notification-dot {
    width: 8px;
    height: 8px;
    background: #ef4444;
    border-radius: 50%;
    flex-shrink: 0;
    margin-left: auto;
    animation: pulse-dot 2s infinite;
}

@keyframes pulse-dot {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(0.8); }
}

/* Plan Section */
.sidebar-plan-section {
    padding: 12px 16px;
    border-top: 1px solid var(--sidebar-border);
    flex-shrink: 0;
}

.plan-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 16px;
    border-radius: 12px;
    background: rgba(79, 70, 229, 0.12);
    color: var(--sidebar-text);
    text-decoration: none;
    font-weight: 600;
    font-size: 13px;
    transition: all 0.2s;
    border: 1px solid rgba(79, 70, 229, 0.15);
}

.plan-link:hover {
    background: rgba(79, 70, 229, 0.2);
    border-color: rgba(79, 70, 229, 0.3);
}

.plan-icon {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.plan-icon svg {
    width: 20px;
    height: 20px;
    stroke: #f59e0b;
}

#current-plan-badge {
    flex: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Sidebar Footer - User Section */
.sidebar-footer {
    padding: 16px 16px 20px;
    border-top: 1px solid var(--sidebar-border);
    flex-shrink: 0;
}

.user-section {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 8px 12px;
    border-radius: 12px;
    transition: background 0.2s;
    cursor: pointer;
    margin-bottom: 8px;
}

.user-section:hover {
    background: var(--sidebar-active-bg);
}

.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(79, 70, 229, 0.2);
    border: 2px solid var(--sidebar-border);
    overflow: hidden;
}

.user-avatar svg {
    width: 22px;
    height: 22px;
    stroke: var(--sidebar-text);
}

.user-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.user-info {
    flex: 1;
    min-width: 0;
}

.user-name {
    font-weight: 600;
    font-size: 14px;
    color: var(--sidebar-text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.user-role {
    font-size: 12px;
    color: var(--sidebar-text-muted);
    font-weight: 400;
}

/* Logout Button */
.sidebar-logout-btn {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 16px;
    border-radius: 12px;
    background: transparent;
    border: 1px solid transparent;
    color: var(--sidebar-text-muted);
    font-weight: 500;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s;
    width: 100%;
    text-align: left;
}

.sidebar-logout-btn:hover {
    background: rgba(239, 68, 68, 0.12);
    color: #ef4444;
    border-color: rgba(239, 68, 68, 0.2);
}

.logout-icon {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.logout-icon svg {
    width: 20px;
    height: 20px;
    stroke: currentColor;
}

.logout-label {
    white-space: nowrap;
}

/* Toggle Buttons */
.sidebar-toggle,
.desktop-sidebar-toggle {
    position: fixed;
    background: var(--sidebar-bg);
    border: 1px solid var(--sidebar-border);
    color: var(--sidebar-text);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    z-index: 1001;
    box-shadow: var(--sidebar-shadow);
}

.sidebar-toggle:hover,
.desktop-sidebar-toggle:hover {
    background: var(--sidebar-active);
    color: white;
    transform: scale(1.05);
}

.sidebar-toggle {
    bottom: 20px;
    left: 20px;
    display: none;
}

.desktop-sidebar-toggle {
    top: 50%;
    right: -20px;
    transform: translateY(-50%);
}

.desktop-sidebar-toggle:hover {
    transform: translateY(-50%) scale(1.05);
}

.toggle-icon {
    font-size: 20px;
    font-weight: 700;
    line-height: 1;
}

.menu-icon {
    display: flex;
    align-items: center;
    justify-content: center;
}

.menu-icon svg {
    width: 22px;
    height: 22px;
    stroke: currentColor;
}

/* Collapsed State */
.sidebar-main.collapsed {
    width: var(--sidebar-collapsed-width);
}

.sidebar-main.collapsed .sidebar-app-name,
.sidebar-main.collapsed .nav-label,
.sidebar-main.collapsed .logout-label,
.sidebar-main.collapsed .user-info,
.sidebar-main.collapsed .plan-link span:not(.plan-icon),
.sidebar-main.collapsed .notification-dot {
    display: none;
}

.sidebar-main.collapsed .nav-link {
    justify-content: center;
    padding: 12px;
}

.sidebar-main.collapsed .user-section {
    justify-content: center;
}

.sidebar-main.collapsed .sidebar-logout-btn {
    justify-content: center;
}

.sidebar-main.collapsed .sidebar-brand {
    justify-content: center;
}

/* 1. Make the container ignore clicks so they pass through to the page content */
div#sidebar-container,
div#sidebar-overlay {
    pointer-events: none !important;
}

/* 2. RE-ENABLE clicks for the sidebar itself and the toggle buttons */
aside#sidebar-main,
button#desktop-sidebar-toggle {
    pointer-events: auto !important;
}
/* ============================================
ENHANCED MOBILE BOTTOM NAV
============================================ */
.mobile-nav-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    background: none;
    border: none;
    color: #9ca3af;
    cursor: pointer;
    padding: 8px 16px;
    border-radius: 12px;
    transition: all 0.2s ease;
    font-size: 11px;
    position: relative;
    min-width: 60px;
}

.mobile-nav-btn svg {
    transition: all 0.2s ease;
}

.mobile-nav-btn span {
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.3px;
    transition: all 0.2s ease;
}

.mobile-nav-btn.active {
    color: #60a5fa;
}

.mobile-nav-btn.active svg {
    transform: scale(1.1);
}

.mobile-nav-btn.active span {
    color: #60a5fa;
}

.mobile-nav-btn:active {
    transform: scale(0.92);
}

/* Center Shop Button - Floating Action Button Style */
.mobile-nav-center-btn {
    position: relative;
    padding: 0 !important;
    min-width: auto !important;
    background: none !important;
}

.center-btn-circle {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    box-shadow: 0 8px 20px rgba(59, 130, 246, 0.4);
    margin-top: -28px;
    border: 4px solid #0a0a12;
    transition: all 0.2s ease;
}

.mobile-nav-center-btn:active .center-btn-circle {
    transform: scale(0.92);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.5);
}

.center-btn-circle svg {
    color: white;
}

.center-btn-label {
    font-size: 10px !important;
    font-weight: 600;
    color: #9ca3af;
    margin-top: 6px;
    letter-spacing: 0.3px;
}

.mobile-nav-center-btn.active .center-btn-label {
    color: #60a5fa;
}

/* ============================================
ENHANCED MOBILE DRAWER
============================================ */
.mobile-drawer-content {
    background: #0a0a12;
}

.drawer-section-label {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1.5px;
    color: #6b7280;
    padding: 16px 16px 8px;
    text-transform: uppercase;
}

.mobile-drawer-item {
    display: flex;
    align-items: center;
    gap: 14px;
    background: transparent;
    border: none;
    padding: 14px 16px;
    border-radius: 12px;
    color: #e5e7eb;
    cursor: pointer;
    transition: all 0.2s ease;
    width: 100%;
    text-align: left;
    font-size: 15px;
    font-weight: 500;
}

.mobile-drawer-item:hover,
.mobile-drawer-item:active {
    background: rgba(96, 165, 250, 0.08);
}

.mobile-drawer-item.logout-item {
    margin-top: 8px;
    background: rgba(239, 68, 68, 0.08);
}

.mobile-drawer-item.logout-item:active {
    background: rgba(239, 68, 68, 0.15);
}

.mobile-drawer-item svg {
    flex-shrink: 0;
}

/* Notification dot for low stock */
.mobile-notification-dot {
    position: absolute;
    top: 6px;
    right: 14px;
    width: 8px;
    height: 8px;
    background: #ef4444;
    border-radius: 50%;
    border: 2px solid #0a0a12;
    animation: pulse-dot 2s infinite;
}

@keyframes pulse-dot {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.6; transform: scale(1.2); }
}

/* Mobile drawer header */
.mobile-drawer-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    margin-bottom: 8px;
}

.mobile-drawer-close {
    background: rgba(255, 255, 255, 0.08);
    border: none;
    color: #9ca3af;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.mobile-drawer-close:active {
    background: rgba(255, 255, 255, 0.15);
    transform: scale(0.92);
}

/* Modal Overlay with Fade-in */
#notificationDetailModal {
  background-color: rgba(0, 0, 0, 0.4) !important;
  backdrop-filter: blur(8px) !important;
  -webkit-backdrop-filter: blur(8px) !important;
  align-items: center !important;
  justify-content: center !important;
  opacity: 0;
  animation: modalFadeIn 0.3s ease forwards;
}

/* Modal Content Box with Slide-up and Glassmorphism */
#notificationDetailModal > div {
  background: rgba(255, 255, 255, 0.7) !important;
  backdrop-filter: blur(12px) !important;
  -webkit-backdrop-filter: blur(12px) !important;
  border: 1px solid rgba(255, 255, 255, 0.3) !important;
  box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.37) !important;
  
  /* Desktop Width Fix */
  width: 90% !important;
  max-width: 500px !important;
  
  /* Slide Animation */
  transform: translateY(20px);
  animation: modalSlideUp 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes modalFadeIn {
  to { opacity: 1; }
}

@keyframes modalSlideUp {
  to { transform: translateY(0); }
}

/* Dark Mode support */
@media (prefers-color-scheme: dark) {
  #notificationDetailModal > div {
    background: rgba(30, 41, 59, 0.7) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
  }
}

/* Mobile Adjustments */
@media (max-width: 640px) {
  #notificationDetailModal {
    padding: 0 !important;
  }

  #notificationDetailModal > div {
    width: 100% !important;
    max-width: 100% !important;
    height: 100% !important;
    max-height: 100vh !important;
    margin: 0 !important;
    border-radius: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    overflow: hidden !important;
  }

  /* Fixed Header */
  #notificationDetailModal > div > .flex.justify-between.items-center:first-child {
    flex-shrink: 0 !important;
    padding: 1.25rem !important;
    backdrop-filter: blur(10px) !important;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1) !important;
  }

  /* Scrollable Body Area */
  #notificationDetailModal > div > #notifModalBody,
  #notificationDetailModal > div > #notifModalDetails {
    flex-grow: 1 !important;
    overflow-y: auto !important;
    padding: 1.25rem !important;
  }

  /* Fixed Footer */
  #notificationDetailModal > div > .mt-6.pt-4:last-child {
    flex-shrink: 0 !important;
    padding: 4.25rem !important;
    margin-top: 2 !important;
    backdrop-filter: blur(10px) !important;
    border-top: 1px solid rgba(0, 0, 0, 0.1) !important;
  }
}
@media (max-width: 640px) {
  /* Expand the notification list height */
  ul#notifList {
    max-height: 75vh !important; 
    height: auto !important;
    flex-grow: 1 !important;
  }
  
  /* Ensure parent allows the height increase */
  div#notifDropdown {
    max-height: 90vh !important;
    height: auto !important;
    flex-direction: column !important;
  }
}



@media (max-width: 767px) {
  /* The main grid container */
  #stockOptionsGrid {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 1rem !important;
  }

  /* Target all buttons within the grid for vertical layout */
  #addOptionBtn,
  #currentStockOptionBtn,
  #historyOptionBtn,
  #groupBySubcategoryBtn,
  #profitLossOptionBtn,
  #weeklySalesOptionBtn,
  #monthlySalesOptionBtn,
  #loanManagementBtn,
  #openNotesBtn {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
    padding: 1rem 0.5rem !important;
    font-size: 0.875rem !important;
    height: auto !important;
    min-height: 120px; /* Ensures buttons have consistent height */
  }

  /* Spacing between icon container and text */
  #stockOptionsGrid button > div {
    margin-bottom: 0.5rem !important;
    padding: 0.5rem !important;
  }

  /* Resize the icons within the buttons */
  #stockOptionsGrid button img {
    width: 1.5rem !important;
    height: 1.5rem !important;
  }

  /* Adjust span (text) for better fit */
  #stockOptionsGrid button span {
    line-height: 1.2 !important;
    word-break: break-word;
  }

}
@media (max-width: 767px) {
  /* Main grid container for fields */
  #addItemSection .grid.md\:grid-cols-2 {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 0.75rem !important;
  }

  /* Each field box (the cards) */
  #addItemSection .bg-white-50, 
  #addItemSection .dark\:bg-white-700 {
    padding: 0.75rem !important;
    margin: 0 !important;
    flex-direction: column !important;
    justify-content: space-between !important;
    min-height: 80px; /* Ensures alignment */
  }

  /* Labels adjustment for small tiles */
  #addItemSection label {
    font-size: 0.7rem !important;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  /* Input and Select adjustment */
  #addItemSection input, 
  #addItemSection select {
    width: 100% !important;
    font-size: 0.8rem !important;
    padding: 0.4rem !important;
    height: 2.2rem !important;
  }
  /* Add Header and Footer to Modal using CSS only */

#itemDetailsModal .modal-content {
  position: relative !important;
  padding-top: 4rem !important;    /* Make room for header */
  padding-bottom: 4rem !important; /* Make room for footer */
  display: flex !important;
  flex-direction: column !important;

}

/* Header */
#itemDetailsModal .modal-content::before {
  content: "Item Information";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3.5rem;
  background: linear-gradient(to right, #3b82f6, #2563eb);
  color: white;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 1.1rem;
  border-top-left-radius: inherit;
  border-top-right-radius: inherit;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  z-index: 1;
}

/* Adjust the Close Button to fit in the header */
#itemDetailsModal .modal-close-btn {
  z-index: 10 !important;
  color: white !important;
  top: 0.75rem !important;
  right: 1rem !important;
  font-size: 1.5rem !important;
  background: transparent !important;
  border: none !important;
}
}


