.Center {
    text-align: center;
}

.Center-Page {
    width: 300px;
    height: 300px;
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    margin: auto;
}

.Space-vert1 {
    margin-top: 20px;
}

.top {
    margin-top: 0;
}

.Grid .Shorter {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.centre-home {
    width: 600px;
    height: 600px;
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    margin: auto;
}

.centre-signup {
    width: 600px;
    height: 600px;
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    margin: auto;
}

.main {
    width: auto;
    height: 600px;
    position: relative;
    top: 0;
    bottom: 50px;
    left: 0;
    right: 0;
    margin: auto;
}

.content-wrapper {
    flex: 1 0 auto;
    padding-bottom: 20px;
}

.footer {
    flex-shrink: 0;
    width: 100%;
    background-color: #fafcff;
    color: dodgerblue;
    text-align: center;
    padding: 20px 0;
    margin-top: auto;
}

/* Mobile adjustments */
@media (max-width: 768px) {
    .footer {
        font-size: 11px;
        padding: 15px 5px;
        line-height: 1.8;
    }

    .footer a {
        white-space: nowrap;
    }
}

html, body {
    height: 100%;
    margin: 0;
}

body {
    display: flex;
    flex-direction: column;
}

.header {
    position: sticky;
    left: 0;
    top: 0;
    bottom: 50px;
    width: 100%;
    background-color: #fafcff;
    margin: auto;
    color: dodgerblue;
    text-align: center;
    z-index: 1;
    white-space: normal;
}

.CoDetails {
    height: 200px;
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50px;
    right: 50px;
    margin: auto;
}

.ProdDetails {
    height: 0px;
    position: absolute;
    top: 100px;
    bottom: 0;
    left: 50px;
    right: 50px;
    margin: auto;
}

/* FIXED: Added missing dot for class selector */
.SignUpTable {
    width: 700px;
    height: 600px;
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    margin: auto;
}

.search-container {
    min-height: 60vh;
    display: flex;
    align-items: center;
    padding: 50px 0;
}

.card.search-card {
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    border: none;
    border-radius: 20px;
    backdrop-filter: blur(10px);
    background: rgba(255, 255, 255, 0.3) !important;
}

.search-card .card-body {
    background: transparent !important;
}

.search-input {
    padding: 15px 20px;
    border-radius: 15px;
    border: 2px solid #e9ecef;
    font-size: 16px;
    transition: all 0.3s ease;
}

.search-input:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 0.2rem rgba(102, 126, 234, 0.25);
}

.filter-pills .btn[data-filter="branch"] {
    margin: 5px;
    border-radius: 25px;
    padding: 8px 20px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.suggestions-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 1px solid #ddd;
    border-radius: 10px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    z-index: 1000;
    display: none;
    max-height: 300px;
    overflow-y: auto;
}

.suggestion-item {
    padding: 12px 15px;
    cursor: pointer;
    border-bottom: 1px solid #f8f9fa;
    transition: background-color 0.2s ease;
}

.suggestion-item:hover {
    background-color: #f8f9fa;
}

.suggestion-item:last-child {
    border-bottom: none;
}

.suggestion-icon {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: bold;
    color: white;
    flex-shrink: 0;
}

.company-icon {
    background: #5CB3FF;
}

.product-icon {
    background: #736AFF;
}

.result-card {
    border: none;
    border-radius: 15px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    cursor: pointer;
}

.result-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

.result-logo, .result-image {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    object-fit: cover;
    flex-shrink: 0;
}

.type-badge {
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.type-company {
    background: #5CB3FF;
    opacity: 0.6;
    color: white;
}

.type-product {
    border-radius: 25px;
    background: #736AFF;
    opacity: 0.6;
    text-align: center;
    color: white;
}

.type-branch {
    border-radius: 25px;
    background: #fd7e14;
    opacity: 0.6;
    text-align: center;
    color: white;
}

.card-description {
    min-height: 40px;
    display: flex;
    align-items: center;
}

.loading-spinner {
    display: none;
    text-align: center;
    padding: 4rem 0;
}

.no-results {
    text-align: center;
    padding: 80px 0;
}

.clickable-card {
    transition: all 0.3s ease;
}

.clickable-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    cursor: pointer;
}

.hero-section {
    background: linear-gradient(#E6F7FF, #f8f8ff);
    color: deepskyblue;
    padding: 60px 0;
    border-radius: 10px;
}

.detail-card {
    border: 1px solid #e9ecef;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    margin-bottom: 30px;
}

.product-image {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 12px;
    border: 2px solid #e9ecef;
    flex-shrink: 0;
}

.product-image-small {
    width: 50px;
    height: 50px;
    object-fit: cover;
    border-radius: 8px;
    border: 1px solid #e9ecef;
    flex-shrink: 0;
}

.company-logo {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 12px;
    border: 2px solid #e9ecef;
    flex-shrink: 0;
    background-color: #f8f9fa;
}

.company-logo-small {
    width: 40px;
    height: 40px;
    object-fit: cover;
    border-radius: 6px;
    border: 1px solid #e9ecef;
    flex-shrink: 0;
    background-color: #f8f9fa;
}

.branch-contact-info a {
    transition: color 0.2s ease;
}

.branch-contact-info a:hover {
    color: #0056b3 !important;
}

@media (max-width: 768px) {
    .branch-contact-info {
        padding: 12px;
        margin-top: 12px;
    }

    .branch-card .card-body {
        padding: 1rem !important;
    }

    .footer {
        font-size: 11px;
        padding: 15px 5px;
        line-height: 1.8;
    }

    .footer a {
        white-space: nowrap;
    }
}

.branch-icon-large {
    width: 80px;
    height: 80px;
    background-color: #6c757d;
    border-radius: 12px;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
}

.branch-icon {
    width: 40px;
    height: 40px;
    background-color: #6c757d;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    flex-shrink: 0;
}

.company-logo .suggestion-icon,
.product-image .suggestion-icon,
.branch-icon-large .suggestion-icon {
    font-size: 24px;
    font-weight: bold;
}


.suggestion-icon {
    font-size: 14px;
    font-weight: bold;
}

.company-placeholder, .product-placeholder {
    width: 150px;
    height: 150px;
    border-radius: 15px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 48px;
    font-weight: bold;
}

.product-placeholder {
    background: linear-gradient(135deg, #f093fb, #f5576c);
}

.branch-placeholder {
    background: linear-gradient(135deg, #a8edea, #fed6e3);
}

.info-label {
    font-weight: 600;
    color: #495057;
    margin-top: 1rem;
    margin-bottom: 0.5rem;
}

.info-label:first-child {
    margin-top: 0;
}

.info-value {
    color: #6c757d;
    margin-bottom: 1rem;
    line-height: 1.5;
    font-size: 16px;
}

.product-card, .branch-card {
    border: 1px solid #e9ecef;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    cursor: pointer;
    height: 100%;
}

.branch-contact-info {
    background-color: #f8f9fa;
    border-radius: 8px;
    padding: 15px;
    margin-top: 15px;
}

.branch-contact-info div {
    line-height: 1.4;
}

.product-card:hover, .branch-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.back-btn {
    background: rgba(176, 196, 222, 0.2);
    border: 1px solid rgba(70, 130, 180, 0.3);
    color: steelblue;
    padding: 10px 20px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.back-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    color: white;
    text-decoration: none;
}

.contact-info {
    background-color: #f8f9fa;
    padding: 1.5rem;
    border-radius: 12px;
    border: 1px solid #e9ecef;
}

.small-card-image {
    width: 60px;
    height: 60px;
    border-radius: 8px;
    object-fit: cover;
}

.small-placeholder {
    width: 60px;
    height: 60px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 16px;
    font-weight: bold;
}

.receipt-container {
    max-width: 800px;
    margin: 2rem auto;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.receipt-header {
    background: #E6F7FF;
    color: #191970;
    padding: 2rem;
    text-align: center;
}

.receipt-header h1 {
    margin: 0;
    font-size: 2rem;
    font-weight: 300;
}

.receipt-header .company-name {
    font-size: 1.2rem;
    opacity: 0.9;
    margin-top: 0.5rem;
}

.receipt-body {
    padding: 2rem;
}

.receipt-info {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 2px solid #f0f0f0;
}

.info-section h3 {
    color: #333;
    font-size: 1rem;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
}

.info-section p {
    margin: 0.5rem 0;
    color: #666;
    line-height: 1.5;
}

.items-section {
    margin: 2rem 0;
}

.items-section h3 {
    color: #333;
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #667eea;
}

.item-card {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 1rem;
    border-left: 4px solid #667eea;
    transition: transform 0.2s ease;
}

.item-card:hover {
    transform: translateX(5px);
}

.item-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.item-type {
    background: #667eea;
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
}

.item-name {
    font-size: 1.1rem;
    font-weight: 600;
    color: #333;
    margin: 0.5rem 0;
}

.item-description {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.item-pricing {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 500;
}

.quantity-price {
    color: #667eea;
}

.item-total {
    font-size: 1.1rem;
    color: #333;
}

.receipt-total {
    background: #E6F7FF;
    color: #191970;
    padding: 2rem;
    text-align: center;
    margin-top: 2rem;
}

.receipt-total h2 {
    margin: 0;
    font-size: 2rem;
    font-weight: 300;
}

.receipt-actions {
    padding: 2rem;
    text-align: center;
    background: #f8f9fa;
}

.btn-download {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 1rem 2rem;
    border: none;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 500;
    transition: transform 0.2s ease;
    display: inline-block;
}

.btn-download:hover {
    transform: translateY(-2px);
    color: white;
    text-decoration: none;
}

.abn-notice {
    background: #E6F7FF;
    border: 1px solid #191970;
    border-radius: 6px;
    padding: 1rem;
    margin-top: 1rem;
    text-align: center;
    color: #191970;
    font-weight: 500;
}

.receipt-card {
    transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
    border-radius: 12px;
    overflow: hidden;
    animation: fadeInUp 0.5s ease-out;
}

.receipt-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15) !important;
}

.card-header {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 12px 12px 0 0 !important;
}

.receipt-details .bg-light {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%) !important;
    border: 1px solid rgba(0,0,0,0.05);
}

.items-preview {
    max-height: 120px;
    overflow-y: auto;
}

.items-preview::-webkit-scrollbar {
    width: 4px;
}

.items-preview::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 2px;
}

.items-preview::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 2px;
}

.items-preview::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}

.badge {
    font-size: 0.75rem;
}

.btn-sm {
    font-size: 0.8rem;
    padding: 0.375rem 0.75rem;
}

/* Animation keyframes */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Staggered animation for receipt cards */
.receipt-card:nth-child(1) { animation-delay: 0s; }
.receipt-card:nth-child(2) { animation-delay: 0.1s; }
.receipt-card:nth-child(3) { animation-delay: 0.2s; }
.receipt-card:nth-child(4) { animation-delay: 0.3s; }
.receipt-card:nth-child(5) { animation-delay: 0.4s; }
.receipt-card:nth-child(6) { animation-delay: 0.5s; }
.receipt-card:nth-child(7) { animation-delay: 0.6s; }
.receipt-card:nth-child(8) { animation-delay: 0.7s; }
.receipt-card:nth-child(9) { animation-delay: 0.8s; }
.receipt-card:nth-child(10) { animation-delay: 0.9s; }

/* Tab styling */
.nav-tabs .nav-link {
    border: none;
    color: #6c757d;
    padding: 12px 20px;
}

.nav-tabs .nav-link.active {
    background-color: #fff;
    border-bottom: 2px solid #0d6efd;
    color: #0d6efd;
}

.nav-tabs .nav-link:hover {
    color: #0d6efd;
    border-color: transparent;
}

/* Quick stats styling */
.quick-stats {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 15px;
}

/* Honeypot field styling */
.honeypot {
    position: absolute !important;
    left: -9999px !important;
    top: -9999px !important;
    width: 1px !important;
    height: 1px !important;
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
    tabindex: -1 !important;
    display: block !important;
    overflow: hidden !important;
    z-index: -1 !important;
    clip: rect(0 0 0 0) !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
}

/* Clickable image effects */
.clickable-image {
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.clickable-image:hover {
    transform: scale(1.05);
    opacity: 0.9;
}

.modal-body img {
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

/* Clickable company card */
.clickable-company-card {
    cursor: pointer;
    transition: all 0.2s ease;
    border: 2px solid transparent;
}

.clickable-company-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    border-color: #0d6efd;
}

.clickable-company-card .company-info-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.clickable-company-card .view-company-icon {
    opacity: 0.6;
    transition: opacity 0.2s ease;
}

.clickable-company-card:hover .view-company-icon {
    opacity: 1;
}

/* Responsive design */
@media (max-width: 768px) {
    .receipt-info {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .receipt-container {
        margin: 1rem;
    }

    .item-pricing {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    .receipt-card {
        margin-bottom: 1rem;
    }

    .card-footer .d-grid {
        gap: 0.5rem !important;
    }

    .card-footer .btn-sm {
        padding: 0.5rem;
    }

    .nav-tabs .nav-link {
        padding: 8px 12px;
        font-size: 14px;
    }

    .branch-card, .product-card {
        margin-bottom: 15px;
    }

    .Cheeky-searching {
        display: block;
        margin: auto;
        width: 50%;
    }
}