@import url('https://fonts.googleapis.com/css2?family=Prompt:wght@300;400;500;600;700&display=swap');

body {
    font-family: 'Prompt', 'Sarabun', sans-serif;
}

.app-shell-content {
    padding-bottom: 1.5rem;
}

.card {
    border: 1px solid #e2e8f0;
    border-radius: 0.9rem;
    background: #ffffff;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.04);
}

.kpi-card {
    border: 1px solid #dbeafe;
    border-radius: 1rem;
    background: linear-gradient(140deg, #ffffff 0%, #f8fbff 60%, #eff6ff 100%);
}

.quick-menu-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.85rem;
    border: 1px solid #e2e8f0;
    background: #ffffff;
    color: #1e293b;
    padding: 0.85rem 0.75rem;
    font-size: 0.88rem;
    font-weight: 600;
    transition: all 0.2s ease;
}

.quick-menu-btn:hover {
    border-color: #93c5fd;
    color: #1d4ed8;
    box-shadow: 0 8px 20px rgba(37, 99, 235, 0.12);
}

.page-fade {
    animation: pageFade 0.25s ease;
}

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

.table-responsive {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

@media (max-width: 767px) {
    .app-shell-content {
        padding-bottom: calc(7.25rem + env(safe-area-inset-bottom));
    }

    .mobile-bottom-nav {
        padding-bottom: env(safe-area-inset-bottom);
    }
}

@media (max-width: 639px) {
    .line-item-mobile {
        grid-template-columns: minmax(0, 1fr) auto;
        grid-template-areas:
            "select select"
            "qty remove";
        align-items: stretch;
    }

    .line-item-mobile .line-item-select {
        grid-area: select;
    }

    .line-item-mobile .line-item-qty {
        grid-area: qty;
    }

    .line-item-mobile .line-item-remove {
        grid-area: remove;
        white-space: nowrap;
    }
}

@media (max-width: 767px) {
    .table-mobile-compact th,
    .table-mobile-compact td {
        white-space: nowrap;
        font-size: 0.76rem;
    }
}
