/**
 * Mobile-First Styles for Sales Reps & Field Invoicing
 */

/* Mobile Bottom Navigation Bar */
.mobile-bottom-nav {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #ffffff;
    border-top: 1px solid #e2e8f0;
    z-index: 1040;
    padding: 6px 4px 8px;
    box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.06);
}

.mobile-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #64748b;
    text-decoration: none;
    font-size: 0.68rem;
    font-weight: 600;
    padding: 4px 0;
    border-radius: 8px;
    transition: all 0.15s ease-in-out;
}

.mobile-nav-item i {
    font-size: 1.3rem;
    margin-bottom: 2px;
}

.mobile-nav-item.active {
    color: #2563eb;
    background-color: #eff6ff;
}

.mobile-nav-item.active i {
    transform: scale(1.1);
}

/* Mobile Sticky Checkout Bar */
.mobile-sticky-checkout {
    position: fixed;
    bottom: 60px; /* Above bottom nav */
    left: 0;
    right: 0;
    background: #0f172a;
    color: #ffffff;
    padding: 10px 16px;
    z-index: 1030;
    box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* Touch-friendly Product Item */
.pos-product-item {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 10px 12px;
    cursor: pointer;
    transition: border-color 0.15s, box-shadow 0.15s, transform 0.1s;
    user-select: none;
    position: relative;
}

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

.pos-product-item.in-cart {
    border-color: #2563eb;
    background-color: #f8faff;
}

/* Cart Line Item Card */
.cart-item-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 12px;
    margin-bottom: 10px;
    position: relative;
}

.cart-item-card.is-amended {
    border-left: 4px solid #f59e0b;
}

/* Stepper buttons */
.stepper-btn {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.1rem;
    border: 1px solid #cbd5e1;
    background: #f8fafc;
    color: #1e293b;
    padding: 0;
}

.stepper-btn:active {
    background: #e2e8f0;
}

/* Price edit input */
.editable-price-input {
    font-family: 'JetBrains Mono', monospace;
    font-weight: 700;
    color: #0f172a;
    background: #fefce8;
    border: 1px dashed #ca8a04;
    border-radius: 6px;
    padding: 4px 8px;
    text-align: right;
    width: 100px;
}

.free-issue-input {
    font-family: 'JetBrains Mono', monospace;
    font-weight: 700;
    color: #6d28d9;
    background: #f5f3ff;
    border: 1px dashed #7c3aed;
    border-radius: 6px;
    padding: 4px 8px;
    text-align: center;
    width: 70px;
}

/* Customer selector pill */
.customer-badge-active {
    background: #e0e7ff;
    color: #3730a3;
    border: 1px solid #c7d2fe;
    border-radius: 10px;
    padding: 8px 12px;
}

/* Mobile optimizations */
@media (max-width: 768px) {
    body {
        padding-bottom: 75px; /* Leave space for bottom nav */
    }
    
    .mobile-bottom-nav {
        display: flex;
    }
    
    .hide-on-mobile {
        display: none !important;
    }

    .container-mobile-flush {
        padding-left: 8px;
        padding-right: 8px;
    }
}

@media (min-width: 769px) {
    .mobile-sticky-checkout {
        bottom: 0;
    }
    
    .hide-on-desktop {
        display: none !important;
    }
}
