/* QBill — New Order Screen Styles */
/* Rule: No custom CSS media queries. Bootstrap 5 handles all responsive layouts. */

/* Table Selection Card */
.table-select-card {
    background-color: var(--qb-white);
    border: 1px solid var(--qb-border);
    border-radius: 14px;
    padding: clamp(0.75rem, 1.8vw, 1rem) clamp(0.85rem, 2.2vw, 1.25rem);
    box-sizing: border-box;
    max-width: 100%;
}
.table-icon-box {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background-color: var(--qb-peach-light);
    border: 1px solid var(--qb-border-light);
    color: var(--qb-terracotta);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
    flex-shrink: 0;
}

/* Category Pills Bar */
.category-scroll-container {
    overflow-x: auto;
    overflow-y: hidden;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none; /* Firefox */
    touch-action: pan-x pan-y;
    width: 100%;
    max-width: 100%;
}
.category-scroll-container::-webkit-scrollbar {
    display: none; /* Chrome, Safari */
}
.category-pill {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 72px;
    padding: 0.55rem 0.75rem;
    border-radius: 12px;
    background-color: var(--qb-white);
    border: 1px solid var(--qb-border);
    color: var(--qb-espresso);
    text-decoration: none;
    font-size: 0.75rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
    flex-shrink: 0;
}
.category-pill i {
    font-size: 1.15rem;
    margin-bottom: 0.25rem;
    color: var(--qb-espresso-muted);
}
.category-pill.active {
    background-color: var(--qb-terracotta);
    border-color: var(--qb-terracotta);
    color: var(--qb-white);
    box-shadow: 0 4px 10px rgba(185, 83, 50, 0.25);
}
.category-pill.active i {
    color: var(--qb-white);
}

/* Search and Filters */
.search-input-group {
    background-color: var(--qb-white);
    border: 1px solid var(--qb-border);
    border-radius: 10px;
    overflow: hidden;
}
.filter-chip {
    padding: 0.4rem 0.85rem;
    border-radius: 50rem;
    background-color: var(--qb-white);
    border: 1px solid var(--qb-border);
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--qb-espresso);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    transition: all 0.2s ease;
    user-select: none;
}
.filter-chip.active {
    background-color: var(--qb-peach-light);
    border-color: var(--qb-terracotta);
    color: var(--qb-terracotta);
}

/* Food Item Card */
.food-card {
    background-color: var(--qb-white);
    border: 1px solid var(--qb-border);
    border-radius: 14px;
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.food-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(50, 28, 23, 0.08);
}
.food-img-wrapper {
    position: relative;
    width: 100%;
    padding-top: 60%; /* Aspect ratio */
    overflow: hidden;
    background-color: var(--qb-cream-alt);
}
.food-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.food-badge-type {
    position: absolute;
    top: 6px;
    left: 6px;
    background-color: rgba(255, 255, 255, 0.94);
    border-radius: 4px;
    padding: 2px 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    z-index: 2;
}
.food-badge-bestseller {
    position: absolute;
    top: 6px;
    right: 6px;
    background-color: rgba(255, 255, 255, 0.95);
    color: #E67E22;
    border-radius: 50%;
    width: 22px;
    height: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.72rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    z-index: 2;
}
.diet-dot-veg {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: #2E7D32;
    display: inline-block;
}
.diet-dot-nonveg {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: #C62828;
    display: inline-block;
}
.diet-box-veg {
    border: 1.5px solid #2E7D32;
    padding: 1px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.diet-box-nonveg {
    border: 1.5px solid #C62828;
    padding: 1px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.food-card {
    background-color: var(--qb-white);
    border: 1px solid var(--qb-border);
    border-radius: 12px;
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.food-card-title {
    font-size: clamp(0.76rem, 1.1vw, 0.95rem);
    font-weight: 700;
    color: var(--qb-espresso);
    line-height: 1.25;
    min-height: 2.5em;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.food-card-price {
    font-size: clamp(0.82rem, 1.3vw, 1.05rem);
    font-weight: 800;
    color: var(--qb-terracotta);
}
.food-card .btn-terracotta {
    font-size: clamp(0.74rem, 1vw, 0.875rem);
}

/* Order Summary Panel */
.order-summary-panel {
    background-color: var(--qb-white);
    border: 1px solid var(--qb-border);
    border-radius: 16px;
    padding: 1.25rem;
    box-shadow: 0 8px 24px rgba(50, 28, 23, 0.05);
}
.order-item-thumb {
    width: 48px;
    height: 48px;
    border-radius: 8px;
    object-fit: cover;
    flex-shrink: 0;
}
.qty-stepper {
    display: inline-flex;
    align-items: center;
    border: 1px solid var(--qb-border);
    border-radius: 8px;
    background-color: var(--qb-cream-alt);
    overflow: hidden;
}
.qty-btn {
    background: none;
    border: none;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    color: var(--qb-terracotta);
    cursor: pointer;
    font-weight: bold;
}
.qty-btn:hover {
    background-color: var(--qb-peach);
}
.qty-num {
    padding: 0 8px;
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--qb-espresso);
}

/* Instructions input */
.instructions-input {
    background-color: var(--qb-cream-alt);
    border: 1px solid var(--qb-border-light);
    border-radius: 8px;
    font-size: 0.85rem;
}

/* Action Buttons */
.btn-save-order {
    background-color: var(--qb-peach-light);
    border: 1px solid var(--qb-border);
    color: var(--qb-terracotta);
    font-weight: 700;
    border-radius: 10px;
    padding: 0.75rem 1rem;
    transition: all 0.2s ease;
}
.btn-save-order:hover {
    background-color: var(--qb-peach);
    border-color: var(--qb-terracotta);
    color: var(--qb-terracotta);
}

.btn-send-kot {
    background-color: var(--qb-terracotta);
    border: 1px solid var(--qb-terracotta);
    color: var(--qb-white);
    font-weight: 700;
    border-radius: 10px;
    padding: 0.75rem 1rem;
    box-shadow: 0 4px 12px rgba(185, 83, 50, 0.25);
    transition: all 0.2s ease;
}
.btn-send-kot:hover {
    background-color: var(--qb-terracotta-hover);
    color: var(--qb-white);
}

/* Mobile Quick Action Order Sheet Handle */
.mobile-sheet-handle {
    width: 36px;
    height: 4px;
    background-color: #D1C5BD;
    border-radius: 4px;
    margin: 0 auto 0.75rem auto;
}

/* New Order Pages (Responsive Viewport Safety) */
.web-new-order-page,
.mobile-new-order-page {
    overflow-x: hidden;
    width: 100%;
    max-width: 100vw;
}


