/* InventiWhats Custom Styles */

:root {
    --primary-color: #007bff;
    --secondary-color: #6c757d;
    --success-color: #28a745;
    --info-color: #17a2b8;
    --warning-color: #ffc107;
    --danger-color: #dc3545;
    --light-color: #f8f9fa;
    --dark-color: #343a40;
}

/* General Styles */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 500px;
    display: flex;
    align-items: center;
}

/* Cards */
.card {
    transition: all 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 1rem 3rem rgba(0,0,0,.175)!important;
}

/* Statistics Cards */
.stat-card {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: white;
    border: none;
}

.stat-card .card-body {
    padding: 2rem;
}

.stat-card h3 {
    font-size: 2.5rem;
    font-weight: 700;
}

/* Navigation - Professional Header (Clean White Theme) */
.navbar {
    background: #ffffff !important;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
    padding: 0.75rem 0;
    border-bottom: 1px solid #e5e7eb;
}

.navbar-brand {
    font-size: 1.6rem;
    font-weight: 700;
    letter-spacing: -0.5px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #1f2937 !important;
    transition: all 0.3s ease;
}

.navbar-brand:hover {
    transform: scale(1.02);
    color: #000000 !important;
}

.navbar-brand i {
    font-size: 1.4rem;
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: #fff;
    padding: 0.5rem;
    border-radius: 10px;
}

.navbar-nav {
    gap: 0.25rem;
}

.navbar-nav .nav-item {
    position: relative;
}

.navbar-nav .nav-link {
    font-weight: 500;
    font-size: 0.95rem;
    padding: 0.5rem 1rem !important;
    border-radius: 8px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    color: #4b5563 !important;
}

.navbar-nav .nav-link:hover {
    background: #f3f4f6;
    color: #1f2937 !important;
    transform: translateY(-1px);
}

.navbar-nav .nav-link.active {
    background: #f3f4f6;
    color: #374151 !important;
    font-weight: 600;
}

.navbar-nav .nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 3px;
    background: #6b7280;
    border-radius: 2px;
}

/* User Dropdown - Clean White Style */
#userDropdown {
    background: #f9fafb;
    border-radius: 25px;
    padding: 0.5rem 1rem !important;
    border: 1px solid #e5e7eb;
    font-weight: 500;
    color: #374151 !important;
}

#userDropdown:hover {
    background: #f3f4f6;
    border-color: #d1d5db;
    color: #1f2937 !important;
}

#userDropdown i {
    font-size: 1.2rem;
    color: #6b7280;
}

.dropdown-menu {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.12);
    padding: 0.5rem;
    min-width: 200px;
    margin-top: 0.5rem;
}

.dropdown-item {
    border-radius: 8px;
    padding: 0.75rem 1rem;
    font-weight: 500;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: #4b5563;
}

.dropdown-item:hover {
    background: #f3f4f6;
    color: #374151;
    transform: translateX(4px);
}

.dropdown-divider {
    margin: 0.5rem 0;
    border-color: #e5e7eb;
}

/* Navbar Toggler - Light Theme */
.navbar-toggler {
    border: 2px solid #d1d5db;
    border-radius: 8px;
    padding: 0.4rem 0.6rem;
    transition: all 0.3s ease;
}

.navbar-toggler:hover {
    background: #f3f4f6;
    border-color: #9ca3af;
}

.navbar-toggler:focus {
    box-shadow: 0 0 0 3px rgba(107, 114, 128, 0.2);
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* Buttons */
.btn {
    font-weight: 500;
    border-radius: 0.5rem;
    transition: all 0.3s ease;
}

.btn:hover {
    transform: translateY(-2px);
}

.btn-lg {
    padding: 0.75rem 2rem;
}

/* Quick Action Buttons - Professional Style */
.quick-action-btn {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
    padding: 1.5rem 1rem !important;
    min-height: 130px !important;
    border-radius: 16px !important;
    text-decoration: none !important;
    color: #fff !important;
    font-weight: 600 !important;
    font-size: 1rem !important;
    border: none !important;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
}

.quick-action-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.3) 0%, transparent 60%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.quick-action-btn:hover {
    transform: translateY(-6px) scale(1.03);
    box-shadow: 0 12px 30px rgba(0,0,0,0.25);
    color: #fff !important;
}

.quick-action-btn:hover::before {
    opacity: 1;
}

.quick-action-btn .icon-wrapper {
    width: 56px;
    height: 56px;
    background: rgba(255,255,255,0.25);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 12px;
    transition: all 0.3s ease;
    position: relative;
    z-index: 1;
}

.quick-action-btn:hover .icon-wrapper {
    background: rgba(255,255,255,0.4);
    transform: scale(1.15) rotate(-5deg);
}

.quick-action-btn i {
    font-size: 1.75rem;
}

.quick-action-btn .btn-label {
    position: relative;
    z-index: 1;
    letter-spacing: 0.5px;
}

/* Color variants with strong gradients */
.quick-action-pos {
    background: linear-gradient(135deg, #059669 0%, #047857 100%) !important;
}

.quick-action-products {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%) !important;
}

.quick-action-inventory {
    background: linear-gradient(135deg, #0891b2 0%, #0e7490 100%) !important;
}

.quick-action-sales {
    background: linear-gradient(135deg, #d97706 0%, #b45309 100%) !important;
}

.quick-action-layaways {
    background: linear-gradient(135deg, #7c3aed 0%, #5b21b6 100%) !important;
}

.quick-action-customers {
    background: linear-gradient(135deg, #475569 0%, #334155 100%) !important;
}

.quick-action-users {
    background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%) !important;
}

.quick-action-reports {
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%) !important;
}

/* Forms */
.form-control {
    border-radius: 0.5rem;
    border: 2px solid #e9ecef;
    transition: all 0.3s ease;
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(0,123,255,.25);
}

.input-group-text {
    border: 2px solid #e9ecef;
    border-radius: 0.5rem 0 0 0.5rem;
    background-color: #f8f9fa;
}

/* Tables */
.table {
    border-radius: 0.5rem;
    overflow: hidden;
}

.table thead th {
    background-color: var(--primary-color);
    color: white;
    border: none;
    font-weight: 600;
}

.table tbody tr {
    transition: all 0.3s ease;
}

.table tbody tr:hover {
    background-color: rgba(0,123,255,0.05);
}

/* Alerts */
.alert {
    border: none;
    border-radius: 0.75rem;
    font-weight: 500;
}

/* Footer */
footer {
    margin-top: auto;
}


/* ============================================
   MODERN PUBLIC INVENTORY STYLES
   ============================================ */

/* Hero Section */
.inventory-hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 3rem 0 5rem;
    position: relative;
    color: white;
}

.inventory-hero .hero-wave {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    line-height: 0;
}

.inventory-hero .hero-wave svg {
    display: block;
    width: 100%;
    height: auto;
}

/* Search Card */
.search-card {
    background: white;
    border-radius: 1rem;
    padding: 1.5rem;
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
    margin-top: -3rem;
    position: relative;
    z-index: 10;
}

/* Product Card V2 - Simple Bootstrap Style */
.product-card-v2 {
    border: none;
    box-shadow: 0 2px 15px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    border-radius: 12px;
    overflow: hidden;
    width: 100%;
}

.product-card-v2:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.product-card-v2 .card-title {
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.4;
}

/* Product Image Container - Simple */
.product-img-container {
    height: 180px;
    background: #f8f9fa;
    overflow: hidden;
}

.product-img-container img,
.product-img-container .no-img-placeholder {
    width: 100%;
    height: 180px;
    object-fit: contain;
}

.no-img-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
}

/* WhatsApp Button in Card */
.product-card-v2 .btn-success {
    background: linear-gradient(135deg, #25d366 0%, #128c7e 100%);
    border: none;
    font-weight: 600;
}

/* Features Section */
.features-section {
    background: linear-gradient(180deg, #f8f9fa 0%, #ffffff 100%);
}

.feature-card {
    background: white;
    border-radius: 1rem;
    padding: 2rem;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0,0,0,0.06);
    transition: all 0.3s ease;
    height: 100%;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.feature-icon {
    width: 70px;
    height: 70px;
    border-radius: 1rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    margin: 0 auto 1.5rem;
}

.feature-icon.icon-success {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
}

.feature-icon.icon-info {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
}

.feature-card h5 {
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: #1f2937;
}

/* CTA Section */
.cta-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.cta-card {
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(10px);
    border-radius: 1rem;
    padding: 2.5rem;
    color: white;
    border: 1px solid rgba(255,255,255,0.2);
}

/* Products Grid Responsive */
.products-grid {
    --bs-gutter-x: 1.5rem;
}

/* WhatsApp Header Button */
.btn-whatsapp-header {
    background: linear-gradient(135deg, #00e676 0%, #00c853 100%);
    color: #ffffff !important;
    border: none;
    border-radius: 2rem;
    padding: 0.5rem 1.25rem;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 230, 118, 0.4);
    text-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

.btn-whatsapp-header:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 230, 118, 0.5);
    color: #ffffff !important;
    background: linear-gradient(135deg, #00ff84 0%, #00e676 100%);
}

.btn-whatsapp-header i {
    font-size: 1.1rem;
}

/* Dashboard */
.dashboard-card {
    border-left: 4px solid var(--primary-color);
}

.dashboard-card.success {
    border-left-color: var(--success-color);
}

.dashboard-card.warning {
    border-left-color: var(--warning-color);
}

.dashboard-card.danger {
    border-left-color: var(--danger-color);
}

.dashboard-card.info {
    border-left-color: var(--info-color);
}

/* Loading Animation */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255,255,255,.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ============================================
   RESPONSIVE STYLES - MOBILE FIRST APPROACH
   ============================================ */

/* Extra Small Devices (phones, less than 576px) */
@media (max-width: 575.98px) {
    /* Navigation - Professional Header Mobile */
    .navbar {
        padding: 0.5rem 0;
    }
    
    .navbar-brand {
        font-size: 1.25rem;
    }
    
    .navbar-brand i {
        font-size: 1.1rem;
        padding: 0.35rem;
        border-radius: 8px;
    }
    
    .navbar-nav {
        gap: 0.15rem;
        padding-top: 0.5rem;
    }
    
    .navbar-nav .nav-link {
        padding: 0.6rem 0.75rem !important;
        font-size: 0.9rem;
    }
    
    .navbar-nav .nav-link.active::after {
        display: none;
    }
    
    #userDropdown {
        margin-top: 0.5rem;
        border-radius: 10px;
        padding: 0.6rem 0.75rem !important;
    }
    
    .dropdown-menu {
        border-radius: 10px;
        box-shadow: 0 5px 20px rgba(0,0,0,0.15);
    }
    
    /* Hero Section */
    .hero-section {
        min-height: 300px;
        padding: 2rem 0;
        text-align: center;
    }
    
    .hero-section .display-4 {
        font-size: 1.75rem;
    }
    
    .hero-section .lead {
        font-size: 1rem;
    }
    
    /* Typography */
    h1 {
        font-size: 1.5rem !important;
    }
    
    h2 {
        font-size: 1.25rem !important;
    }
    
    h3 {
        font-size: 1.1rem !important;
    }
    
    .display-4 {
        font-size: 1.5rem !important;
    }
    
    /* Buttons */
    .btn-lg {
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
    }
    
    .btn {
        font-size: 0.85rem;
        padding: 0.375rem 0.75rem;
    }
    
    /* Quick Action Buttons */
    .quick-action-btn {
        min-height: 100px !important;
        padding: 1rem 0.5rem !important;
    }
    
    .quick-action-btn .icon-wrapper {
        width: 40px;
        height: 40px;
    }
    
    .quick-action-btn i {
        font-size: 1.25rem;
    }
    
    .quick-action-btn .btn-label {
        font-size: 0.8rem !important;
    }
    
    /* Dashboard Cards */
    .stat-card .card-body {
        padding: 1rem;
    }
    
    .stat-card h3 {
        font-size: 1.5rem;
    }
    
    .dashboard-card {
        margin-bottom: 1rem;
    }
    
    /* Tables - Convert to cards on mobile */
    .table-responsive {
        border: none;
    }
    
    .table {
        font-size: 0.85rem;
    }
    
    .table thead th {
        font-size: 0.8rem;
        padding: 0.5rem;
    }
    
    .table tbody td {
        padding: 0.5rem;
    }
    
    /* Forms */
    .form-control {
        font-size: 16px; /* Prevent zoom on iOS */
    }
    
    .form-label {
        font-size: 0.9rem;
        margin-bottom: 0.25rem;
    }
    
    /* Cards */
    .card {
        margin-bottom: 1rem;
    }
    
    .card-body {
        padding: 1rem;
    }
    
    .card-header {
        padding: 0.75rem 1rem;
    }
    
    .card-header h5, .card-header h6 {
        font-size: 0.95rem;
    }
    
    /* Product Cards */
    .product-card {
        margin-bottom: 1rem;
    }
    
    .product-image {
        height: 150px;
    }
    
    .product-image i {
        font-size: 3rem;
    }
    
    .price-retail {
        font-size: 1.2rem;
    }
    
    .price-wholesale {
        font-size: 1rem;
    }
    
    /* Alerts */
    .alert {
        padding: 0.75rem;
        font-size: 0.9rem;
    }
    
    /* Footer */
    footer {
        text-align: center;
    }
    
    footer .text-md-end {
        text-align: center !important;
        margin-top: 1rem;
    }
    
    /* Container spacing */
    .container {
        padding-left: 0.75rem;
        padding-right: 0.75rem;
    }
    
    /* Page Headers */
    .bg-primary.py-4 {
        padding-top: 1.5rem !important;
        padding-bottom: 1.5rem !important;
    }
    
    .bg-primary h1 {
        font-size: 1.25rem !important;
    }
    
    .bg-primary p {
        font-size: 0.85rem !important;
    }
    
    /* POS System Mobile */
    .pos-container {
        grid-template-columns: 1fr;
        height: auto;
        gap: 10px;
    }
    
    .pos-cart {
        order: -1;
        height: auto;
        max-height: 300px;
    }
    
    .product-grid {
        grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
        gap: 8px;
        padding: 10px;
    }
    
    .product-card {
        padding: 8px;
    }
    
    .product-card img {
        width: 40px;
        height: 40px;
    }
    
    .product-card .name {
        font-size: 10px;
    }
    
    .product-card .price {
        font-size: 12px;
    }
    
    /* Cart items */
    .cart-item {
        padding: 8px;
        gap: 8px;
    }
    
    /* Modals */
    .modal-dialog {
        margin: 0.5rem;
    }
    
    .modal-body {
        padding: 1rem;
    }
    
    /* Badges */
    .badge {
        font-size: 0.75rem;
        padding: 0.25em 0.5em;
    }
    
    /* Dropdown menus */
    .dropdown-menu {
        font-size: 0.9rem;
    }
    
    /* Pagination */
    .pagination {
        font-size: 0.85rem;
    }
    
    .page-link {
        padding: 0.375rem 0.5rem;
    }
}

/* Small Devices (landscape phones, 576px and up) */
@media (min-width: 576px) and (max-width: 767.98px) {
    .hero-section {
        min-height: 350px;
    }
    
    .hero-section .display-4 {
        font-size: 2rem;
    }
    
    .quick-action-btn {
        min-height: 110px !important;
        padding: 1.25rem 0.75rem !important;
    }
    
    .quick-action-btn .icon-wrapper {
        width: 48px;
        height: 48px;
    }
    
    .quick-action-btn i {
        font-size: 1.5rem;
    }
    
    h1 {
        font-size: 1.75rem !important;
    }
    
    /* POS adjustments */
    .pos-container {
        grid-template-columns: 1fr;
        height: auto;
    }
    
    .pos-cart {
        order: -1;
        height: auto;
        max-height: 350px;
    }
    
    .product-grid {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    }
}

/* Medium Devices (tablets, 768px and up) */
@media (min-width: 768px) and (max-width: 991.98px) {
    .hero-section {
        min-height: 400px;
    }
    
    .hero-section .display-4 {
        font-size: 2.5rem;
    }
    
    .quick-action-btn {
        min-height: 120px !important;
    }
    
    /* POS adjustments for tablets */
    .pos-container {
        grid-template-columns: 1fr 350px;
    }
}

/* Large Devices (desktops, 992px and up) */
@media (min-width: 992px) {
    .pos-container {
        grid-template-columns: 1fr 400px;
    }
}

/* Extra Large Devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {
    .container {
        max-width: 1140px;
    }
}

/* Touch-friendly improvements for all mobile devices */
@media (hover: none) and (pointer: coarse) {
    .btn {
        min-height: 44px;
    }
    
    .form-control {
        min-height: 44px;
    }
    
    .form-select {
        min-height: 44px;
    }
    
    .nav-link {
        padding: 0.75rem 1rem;
    }
    
    .dropdown-item {
        padding: 0.75rem 1.25rem;
    }
    
    .quick-action-btn {
        min-height: 100px !important;
    }
    
    /* Larger touch targets for mobile */
    .table tbody tr {
        min-height: 48px;
    }
    
    .btn-sm {
        min-height: 36px;
        padding: 0.5rem 0.75rem;
    }
}

/* Landscape orientation on mobile */
@media (max-width: 991.98px) and (orientation: landscape) {
    .hero-section {
        min-height: 250px;
    }
    
    .pos-cart {
        max-height: 250px;
    }
}

/* Print Styles */
@media print {
    .navbar, .footer, .btn, .alert {
        display: none !important;
    }
    
    .container-fluid {
        padding: 0;
    }
    
    .card {
        border: 1px solid #dee2e6;
        box-shadow: none;
    }
    
    /* Ensure tables print well */
    .table {
        font-size: 10pt;
    }
    
    .table-responsive {
        overflow: visible;
    }
}

/* ============================================
   NEW QUOTE MODAL - RESPONSIVE STYLES
   ============================================ */

/* Mobile adjustments for the new quote modal */
@media (max-width: 991.98px) {
    /* Force full screen modal on mobile */
    #newQuoteModal.modal.show .modal-dialog.modal-xl {
        max-width: 100% !important;
        width: 100% !important;
        height: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        bottom: 0 !important;
    }

    #newQuoteModal.modal.show .modal-content {
        height: 100% !important;
        max-height: 100vh !important;
        border-radius: 0 !important;
        border: none !important;
    }

    #newQuoteModal .modal-body {
        padding: 0.75rem !important;
        overflow-y: auto !important;
        max-height: calc(100vh - 120px) !important;
    }

    #newQuoteModal .modal-header {
        border-radius: 0 !important;
    }

    #newQuoteModal .modal-footer {
        border-radius: 0 !important;
    }

    /* Stack columns vertically on mobile */
    #newQuoteModal .row > .col-lg-8,
    #newQuoteModal .row > .col-lg-4 {
        width: 100%;
        padding: 0 0.5rem;
    }

    /* Product grid adjustments */
    #newQuoteModal #productSearchSection .row.g-2 {
        max-height: 200px;
    }

    #newQuoteModal #productSearchSection .col-6 {
        padding: 0.25rem;
    }

    #newQuoteModal #productSearchSection .card-body {
        padding: 0.5rem;
    }

    #newQuoteModal #productSearchSection .card-title {
        font-size: 0.75rem !important;
    }

    #newQuoteModal #productSearchSection .badge {
        font-size: 0.7rem;
    }

    #newQuoteModal #productSearchSection small {
        font-size: 0.65rem;
    }

    /* Selected items table adjustments */
    #newQuoteModal #selectedItemsSection .table {
        font-size: 0.8rem;
    }

    #newQuoteModal #selectedItemsSection th,
    #newQuoteModal #selectedItemsSection td {
        padding: 0.5rem 0.25rem;
    }

    #newQuoteModal #selectedItemsSection input[type="number"] {
        width: 60px !important;
        padding: 0.25rem;
        font-size: 0.8rem;
    }

    /* Card headers */
    #newQuoteModal .card-header {
        padding: 0.5rem 0.75rem;
    }

    #newQuoteModal .card-header h6 {
        font-size: 0.85rem;
    }

    /* Summary section - move to top on mobile */
    #newQuoteModal .col-lg-4 {
        order: -1;
        margin-bottom: 1rem;
    }

    #newQuoteModal .col-lg-4 .sticky-top {
        position: relative !important;
        top: 0 !important;
    }

    /* Toggle buttons adjustments */
    #newQuoteModal .btn-group.w-100 {
        flex-wrap: wrap;
        gap: 0.25rem;
    }

    #newQuoteModal .btn-group.w-100 .btn {
        flex: 1 1 45%;
        font-size: 0.8rem;
        padding: 0.5rem 0.25rem;
    }

    /* Form controls */
    #newQuoteModal .form-select,
    #newQuoteModal .form-control {
        font-size: 16px; /* Prevent zoom on iOS */
        padding: 0.5rem 0.75rem;
    }

    /* Repair section */
    #newQuoteModal #repairDescriptionSection textarea {
        font-size: 16px;
    }

    /* Totals section */
    #newQuoteModal .d-flex.justify-content-between {
        font-size: 0.9rem;
    }

    #newQuoteModal .h4,
    #newQuoteModal .h5 {
        font-size: 1.1rem;
    }

    /* Modal footer */
    #newQuoteModal .modal-footer {
        padding: 0.75rem;
        flex-wrap: wrap;
        gap: 0.5rem;
    }

    #newQuoteModal .modal-footer .btn {
        flex: 1 1 auto;
        font-size: 0.85rem;
        padding: 0.5rem 1rem;
    }
}

/* Extra small devices */
@media (max-width: 575.98px) {
    #newQuoteModal .modal-header {
        padding: 0.75rem 1rem;
    }

    #newQuoteModal .modal-title {
        font-size: 1rem;
    }

    /* Product cards even smaller */
    #newQuoteModal #productSearchSection .col-6 {
        width: 50%;
    }

    #newQuoteModal #productSearchSection .fa-box {
        font-size: 1.5rem;
    }

    /* Table adjustments */
    #newQuoteModal .table-responsive {
        font-size: 0.75rem;
    }

    #newQuoteModal .table th,
    #newQuoteModal .table td {
        white-space: nowrap;
    }

    /* Input groups */
    #newQuoteModal .input-group-text {
        padding: 0.5rem;
        font-size: 0.9rem;
    }

    /* Customer creation inputs */
    #newQuoteModal #newCustomerSection input {
        margin-bottom: 0.5rem;
    }
}

/* Landscape mode on mobile */
@media (max-width: 991.98px) and (orientation: landscape) {
    #newQuoteModal .modal-dialog {
        max-width: 95%;
        margin: 0.5rem auto;
    }

    #newQuoteModal #productSearchSection .row.g-2 {
        max-height: 150px;
    }
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #555;
}