@keyframes fast-pulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.3;
  }
}

.animate-fast-pulse {
  animation: fast-pulse 0.5s infinite; /* 0.5s = lebih cepat */
}





/* pastikan setiap row bisa di-break */
#print-area table, 
#print-area tr, 
#print-area td, 
#print-area th {
  page-break-inside: avoid;
}

#print-area {
  page-break-inside: auto;
}






        /* PWA Navigation Styles */
        .pwa-nav {
            position: fixed;
            bottom: 80px;
            right: 20px;
            display: flex;
            flex-direction: column;
            gap: 10px;
            z-index: 999;
        }

        .pwa-btn {
            width: 32px;
            height: 32px;
            background: white;
            border: 1px solid #EAB308;
            display: flex;
            align-items: center;
            cursor: pointer;
            transition: all 0.3s ease;
            box-shadow: 0 2px 8px rgba(0,0,0,0.1);
        }

        .pwa-btn:hover:not([aria-disabled="true"]) {
            background: #EAB308;
            color: white;
            transform: scale(1.1);
        }

        .pwa-btn[aria-disabled="true"] {
            opacity: 0.5;
            cursor: not-allowed;
        }

        .pwa-joystick {
            display: flex;
            gap: 10px;
        }







/* Supaya produk PAKET selalu di bawah dalam grid */
.packet-item {
    order: 999;
}




      .material-symbols-outlined {
        font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
      }

  .pwa-nav {
    position: fixed;
    right: 10px;
    bottom: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    pointer-events: none;
  }

  .pwa-btn {
    pointer-events: auto;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #48D1CC00;
    backdrop-filter: blur(6px);
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
    border: 1px solid rgba(255, 0, 0, 0.08);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform .12s ease, opacity .12s ease;
    user-select: none;
  }

  .pwa-btn:active { transform: scale(.94); }
  .pwa-btn[aria-disabled="true"] { opacity: .4; cursor: default; }

  .pwa-btn svg {
    width: 16px;
    height: 16px;
    color: #333;
  }

  .pwa-top {
    width: 32px;
    height: 32px;
  }

  .pwa-joystick {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 8px;
  }

  .pwa-btn:focus {
    outline: 2px solid rgba(59,130,246,0.3);
    outline-offset: 1px;
  }






/* BOTTOM NAV */
  /* ================== MOBILE SELALU TAMPIL ================== */
  @media (max-width: 768px) {
    #bottomNav {
      transform: translateY(0) !important;
      opacity: 1 !important;
    }
  }

  /* ================== DESKTOP ================== */
  @media (min-width: 769px) {
    #bottomNav {
      transform: translateY(100%);
      opacity: 0;
      transition: transform 0.3s ease, opacity 0.3s ease;
      will-change: transform, opacity;
    }

    #bottomNav.active {
      transform: translateY(0) !important;
      opacity: 1 !important;
    }
  }


/* Overlay agar spinner di tengah layar */
.loading {
    position: fixed;
    inset: 0; /* top:0; right:0; bottom:0; left:0 */
    display: flex;
    justify-content: center;
    align-items: center;
    background: rgba(255,255,255,0.7); /* semi transparan */
    backdrop-filter: blur(3px); /* efek modern */
}

/* Pulse Ring Spinner */
.spinner {
    width: 64px;
    height: 64px;
    border: 6px solid #db3434;
    border-radius: 50%;
    animation: pulse-ring 1.5s infinite;
}

@keyframes pulse-ring {
    0%   { box-shadow: 0 0 0 0 rgba(219, 127, 52, 0.6); }
    70%  { box-shadow: 0 0 0 20px rgba(52,152,219,0); }
    100% { box-shadow: 0 0 0 0 rgba(52,152,219,0); }
}




    /* Animasi kursor */
        @keyframes blink {
        0%, 50% { opacity: 1; }
        51%, 100% { opacity: 0; }
        }
        .typing-cursor::after {
        content: "|";
        margin-left: 2px;
        color: red-400; /* Tailwind gray-400 */
        animation: blink 1s infinite;
        }


      /* notifikasi */
	  @keyframes slide-up {
            0%   { transform: translateY(60px); opacity: 0; }
            20%  { transform: translateY(0); opacity: 1; }
            70%  { transform: translateY(-40px); opacity: 1; }
            100% { transform: translateY(-80px); opacity: 0; }
        }
        .animate-slide-up {
            animation: slide-up 3s ease-out forwards; /* durasi diperpanjang */
        }



    #global-popup {
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px); /* Safari */
}



