@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700&display=swap');

        .modal-backdrop {
            background-color: rgba(15, 23, 42, 0.74) !important;
            backdrop-filter: blur(22px) saturate(115%) !important;
            -webkit-backdrop-filter: blur(22px) saturate(115%) !important;
            overflow-y: auto !important;
            overscroll-behavior: contain;
        }

        .modal-backdrop > div {
            max-height: calc(100svh - 1.5rem) !important;
            overscroll-behavior: contain;
        }

        @supports (height: 100dvh) {
            .modal-backdrop > div {
                max-height: calc(100dvh - 1.5rem) !important;
            }
        }

        @media (max-height: 860px) {
            .modal-backdrop {
                align-items: flex-start !important;
                padding-top: 0.75rem !important;
                padding-bottom: 0.75rem !important;
            }

            .modal-backdrop > div {
                margin-top: 0 !important;
                margin-bottom: 0 !important;
            }
        }

        @media (max-width: 767px) {
            .modal-backdrop {
                align-items: flex-start !important;
                padding: 0.75rem !important;
                overflow-y: auto !important;
            }

            .modal-backdrop > div {
                width: 100% !important;
                max-width: 100% !important;
                max-height: calc(100dvh - 1.5rem) !important;
                border-radius: 1.25rem !important;
            }
        }

        body {
            font-family: 'Plus Jakarta Sans', sans-serif;
            background-color: #F9FAFB;
        }

        @media (min-width: 1024px) {
            .app-main {
                scrollbar-width: thin;
                scrollbar-color: #0f172a #f1f5f9;
            }

            .app-main::-webkit-scrollbar {
                width: 16px;
            }

            .app-main::-webkit-scrollbar-track {
                background: #f1f5f9;
            }

            .app-main::-webkit-scrollbar-thumb {
                background: #0f172a;
                border: 4px solid #f1f5f9;
                border-radius: 999px;
            }

            .app-main::-webkit-scrollbar-thumb:hover {
                background: #044F3B;
            }
        }

        select {
            appearance: none;
            -webkit-appearance: none;
            background-image: linear-gradient(45deg, transparent 50%, #10b981 50%), linear-gradient(135deg, #10b981 50%, transparent 50%);
            background-position: calc(100% - 18px) 50%, calc(100% - 13px) 50%;
            background-size: 5px 5px, 5px 5px;
            background-repeat: no-repeat;
            padding-right: 2.75rem !important;
        }

        select:focus {
            box-shadow: 0 0 0 1px rgba(16, 185, 129, 0.35);
        }

        html,
        body {
            height: 100%;
            overflow: hidden;
        }

        #app {
            height: 100vh;
            overflow: hidden;
        }

        .app-sidebar {
            height: 100%;
            overflow-y: hidden;
            scrollbar-gutter: stable;
        }

        .app-sidebar:hover {
            overflow-y: auto;
        }

        .app-sidebar::-webkit-scrollbar {
            width: 0;
        }

        .app-sidebar:hover::-webkit-scrollbar {
            width: 6px;
        }

        .app-sidebar::-webkit-scrollbar-track {
            background: transparent;
        }

        .app-sidebar::-webkit-scrollbar-thumb {
            background: #10b981;
            border-radius: 10px;
        }

        .app-main {
            height: 100%;
            overflow-y: auto;
        }

        .app-shell {
            min-width: 0;
        }

        .app-content {
            min-width: 0;
        }

        @media (max-width: 1366px) {
            .app-sidebar {
                width: 13rem !important;
                padding: 1rem !important;
            }

            .app-sidebar nav {
                gap: 0.75rem;
            }

            .app-sidebar button {
                padding: 0.65rem 0.75rem !important;
                gap: 0.65rem !important;
                font-size: 0.82rem;
            }

            .app-sidebar p {
                letter-spacing: 0.12em !important;
            }

            .app-main {
                padding: 1.25rem !important;
            }

            .app-header {
                height: 60px !important;
                padding-left: 1.25rem !important;
                padding-right: 1.25rem !important;
            }

            .app-header-title {
                min-width: 0 !important;
            }

            .app-header-title h2 {
                font-size: 1.25rem !important;
                letter-spacing: 0.1em !important;
                white-space: nowrap;
                overflow: hidden;
                text-overflow: ellipsis;
            }

            .app-main .grid {
                gap: 1rem;
            }

            .app-main .rounded-\[2rem\] {
                border-radius: 1.35rem !important;
            }

            .app-main .p-6,
            .app-main .md\:p-7,
            .app-main .md\:p-8 {
                padding: 1rem !important;
            }

            .app-main .text-4xl {
                font-size: 2rem !important;
            }

            .app-main .text-3xl {
                font-size: 1.65rem !important;
            }

            .pos-order-card {
                padding: 1rem !important;
            }

            .pos-cart-list {
                min-height: 260px !important;
                margin-bottom: 1rem !important;
            }

            .pos-cart-footer {
                padding-top: 1rem !important;
            }

            .pos-cart-total {
                font-size: 2rem !important;
                line-height: 1.05 !important;
            }

            .pos-plastic-pack-grid {
                grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
            }

            .pos-pack-card {
                min-height: auto !important;
                padding: 0.75rem !important;
            }

            .pos-pack-inner {
                gap: 0.5rem !important;
            }

            .pos-pack-inner>div:first-child {
                min-width: 0;
            }

            .pos-pack-inner span {
                padding-left: 0.55rem !important;
                padding-right: 0.55rem !important;
                flex-shrink: 0;
            }

            .pos-pack-inner p {
                overflow-wrap: anywhere;
            }

            .pos-cart-table thead {
                display: none;
            }

            .pos-cart-table,
            .pos-cart-table tbody,
            .pos-cart-row,
            .pos-cart-item-cell,
            .pos-cart-meta-cell,
            .pos-cart-subtotal-cell {
                display: block;
                width: 100%;
            }

            .pos-cart-row {
                padding: 0.85rem 0;
                border-bottom: 1px solid #f1f5f9;
            }

            .pos-cart-item-cell,
            .pos-cart-meta-cell,
            .pos-cart-subtotal-cell {
                padding: 0.25rem 0 !important;
            }

            .pos-cart-item-main {
                align-items: flex-start !important;
            }

            .pos-cart-item-name {
                flex: 1;
                min-width: 0;
                overflow-wrap: anywhere;
                font-size: 0.92rem;
            }

            .pos-cart-meta-cell {
                text-align: left !important;
                padding-left: 4.75rem !important;
            }

            .pos-cart-subtotal-cell {
                text-align: right !important;
                font-size: 1rem;
            }

            .app-main table[class*="min-w-"] {
                min-width: 760px !important;
            }

            .app-main [class*="min-w-[1080px]"],
            .app-main [class*="min-w-[900px]"] {
                min-width: 820px !important;
            }
        }

        @media (max-width: 1180px) {
            .app-sidebar {
                width: 4.75rem !important;
                padding: 0.75rem !important;
                align-items: center;
            }

            .app-sidebar>div:first-child span,
            .app-sidebar nav p,
            .app-sidebar button:not(.keep-label) {
                font-size: 0 !important;
            }

            .app-sidebar button {
                justify-content: center;
                padding: 0.75rem !important;
            }

            .app-sidebar button i {
                font-size: 1rem !important;
                margin: 0 !important;
            }

            .app-sidebar>div:last-child {
                display: none;
            }

            .app-main {
                padding: 1rem !important;
            }

            .pos-cart-list table {
                min-width: 520px;
            }

            .pos-cart-list .pos-cart-table {
                min-width: 0 !important;
            }

            .app-main table[class*="min-w-"],
            .app-main [class*="min-w-[1080px]"],
            .app-main [class*="min-w-[900px]"],
            .app-main [class*="min-w-[760px]"] {
                min-width: 680px !important;
            }
        }

        @media (max-width: 767px) {

            html,
            body,
            #app {
                overflow: auto;
            }

            .app-main {
                height: auto;
                min-height: 100vh;
                padding: 0.75rem !important;
            }
        }

        .calendar-panel-enter-active,
        .calendar-panel-leave-active {
            transition: opacity 180ms ease, transform 220ms cubic-bezier(0.22, 1, 0.36, 1);
        }

        .calendar-panel-enter-from,
        .calendar-panel-leave-to {
            opacity: 0;
            transform: translateY(12px) scale(0.97);
        }

        /* 🖨️ Printing Logic */
        @media print {

            html,
            body {
                width: 100%;
                height: 100%;
                margin: 0;
                padding: 0;
                background: white;
            }

            body * {
                visibility: hidden !important;
            }

            .print-active,
            .print-active * {
                visibility: visible !important;
            }

            .print-active {
                position: fixed;
                left: 0;
                top: 0;
                right: auto;
                bottom: auto;
                border: none !important;
                margin: 0 !important;
                display: block !important;
                background: white !important;
                box-sizing: border-box !important;
                transform: none !important;
            }

            .no-print {
                display: none !important;
            }

            @page {
                margin: 0;
            }
        }

        .custom-scroll::-webkit-scrollbar {
            width: 6px;
        }

        .custom-scroll::-webkit-scrollbar-track {
            background: #f8fafc;
            border-radius: 10px;
        }

        .custom-scroll::-webkit-scrollbar-thumb {
            background: #10b981;
            border-radius: 10px;
        }

        .sticker-design {
            display: flex;
            flex-direction: column;
            justify-content: space-between;
            text-align: center;
            background: white;
            color: black;
            border: 1px solid #000;
            text-transform: uppercase;
            font-family: 'Courier New', Courier, monospace;
        }

        input[type="date"] {
            color-scheme: light;
        }

        input[type="date"]::-webkit-calendar-picker-indicator {
            cursor: pointer;
            opacity: 0.72;
            filter: invert(39%) sepia(67%) saturate(520%) hue-rotate(112deg) brightness(90%) contrast(88%);
        }

        @keyframes premiumRise {
            from {
                opacity: 0;
                transform: translateY(14px) scale(0.992);
            }

            to {
                opacity: 1;
                transform: translateY(0) scale(1);
            }
        }

        .premium-reveal {
            opacity: 0;
            animation: premiumRise 420ms cubic-bezier(0.22, 1, 0.36, 1) forwards;
            will-change: transform, opacity;
        }

        .premium-delay-1 {
            animation-delay: 40ms;
        }

        .premium-delay-2 {
            animation-delay: 110ms;
        }

        .premium-delay-3 {
            animation-delay: 180ms;
        }

        .premium-up-enter-active {
            transition: opacity 380ms cubic-bezier(0.22, 1, 0.36, 1), transform 380ms cubic-bezier(0.22, 1, 0.36, 1);
        }

        .premium-up-enter-from {
            opacity: 0;
            transform: translateY(14px) scale(0.992);
        }

        .premium-up-leave-active {
            transition: opacity 220ms cubic-bezier(0.4, 0, 1, 1), transform 220ms cubic-bezier(0.4, 0, 1, 1);
        }

        .premium-up-leave-to {
            opacity: 0;
            transform: translateY(-8px) scale(0.996);
        }

        /* Global form label readability */
        label[class*="text-slate-400"],
        label[class*="text-gray-400"],
        span[class*="text-slate-400"][class*="uppercase"],
        p[class*="text-slate-400"][class*="uppercase"] {
            color: #334155 !important;
            font-size: 0.75rem !important;
            letter-spacing: 0.06em !important;
        }

        label[class*="text-[10px]"],
        span[class*="text-[10px]"][class*="uppercase"],
        p[class*="text-[10px]"][class*="uppercase"] {
            font-size: 0.75rem !important;
        }

        /* Global table header readability */
        table thead,
        table thead tr,
        table thead th {
            color: #111827 !important;
        }

        table thead th {
            font-weight: 900 !important;
        }
