.ha-second-row {
        height: 60vh !important;
        min-height: 400px !important;
        max-height: 600px !important;
        background-color: #e7e7e7;
        width: 100%;
        border-top: 1px solid #ddd;
        overflow: hidden;
        display: flex !important;
        flex-direction: column;
        visibility: visible !important;
        opacity: 1 !important;
    }
    

.ha-item-groups-container {
        flex: 0 0 auto;
        background-color: #e7e7e7;
        border-bottom: 1px solid #ddd;
        display: flex !important;
        flex-direction: column;
        visibility: visible !important;
        opacity: 1 !important;
    }
    
    .ha-pagination-and-groups-wrapper {
        display: flex;
        align-items: center;
        overflow: hidden;
        padding: 0px 10px;
    }
    
    .ha-groups-buttons-wrapper {
        display: flex;
        flex: 1;
        overflow: hidden;
        white-space: nowrap;
        align-items: center;
        padding-left: 10px;
    }
    
    .ha-group-items-container {
        display: flex;
        flex-wrap: wrap;
        overflow: hidden;
        gap: 1px;
        background-color: #e7e7e7;
        flex: 1;
        padding: 0px 10px 10px 10px;
        max-height: calc(60vh - 100px);
        align-content: flex-start;
        box-sizing: border-box;
    }
    

    .ha-item-group-btn , .ha-group-item-btn {
        display: inline-block;
        align-items: center;
        align-content: center;
        min-height: 60px;
        /* max-height: 60px; */
        background-color: var(--navyblue);
        color: white;
        border: none;
        cursor: pointer;
        font-weight: 600;
        transition: all 0.2s;
        width: 150px;
        text-align: center;
        padding: 10px;
        border: 1px solid #ddd;
    }
    
    .ha-group-item-btn {
        background-color: var(--secondary-color);
    }
    .ha-item-group-btn:hover {
        background-color: var(--primary-color);
    }
    
    .ha-item-group-btn.active {
        background-color: var(--orange-color);
    }
    

    
    .ha-group-item-btn:hover {
        background-color: var(--navyblue);
        /* border-color: #4a90e2; */
    }
    
    .ha-item-code-small {
        font-size: 12px;
        /* color: #666; */
        margin-bottom: 5px;
    }
    
    .ha-item-name-small {
        font-size: 12px;
        font-weight: 600;
        margin-bottom: 5px;
    }
    
    .ha-item-price-small {
        font-size: 12px;
        color: var(--success-color);
        font-weight: 600;
    }

    /* Group Search Header Styles */
    .ha-groups-search-header {
        display: flex;
        justify-content: flex-end;
        align-items: center;
        padding: 8px 12px;
        background-color: #f5f5f5;
        border-bottom: 1px solid #ddd;
        width: 100%;
    }
    
    .ha-group-search-input {
        width: 250px;
        padding: 8px 12px;
        border: 1px solid #ddd;
        border-radius: 4px;
        font-size: 13px;
        outline: none;
        transition: all 0.3s ease;
        background-color: white;
    }
    
    .ha-group-search-input:focus {
        border-color: var(--orange-color);
        box-shadow: 0 0 0 2px rgba(255, 152, 0, 0.2);
    }
    
    .ha-group-search-input::placeholder {
        color: #999;
        font-size: 12px;
    }
    
    /* "All Items" button special styling */
    .ha-all-items-btn {
        background-color: var(--orange-color) !important;
        font-weight: 700;
    }
    
    .ha-all-items-btn:hover {
        background-color: #e67e22 !important;
    }

    /* Pagination Styles */
    .ha-pagination-container {
        display: flex;
        align-items: center;
        gap: 8px;
        padding: 8px 12px;
        background-color: #5a7a91;
        border-radius: 4px;
        min-height: 44px;
        flex-shrink: 0;
    }

    .ha-pagination-btn {
        background-color: rgba(255, 255, 255, 0.2);
        color: white;
        border: none;
        border-radius: 4px;
        padding: 8px 12px;
        cursor: pointer;
        font-size: 14px;
        transition: all 0.3s ease;
        min-width: 40px;
        height: 32px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .ha-pagination-btn:hover:not(:disabled) {
        background-color: rgba(255, 255, 255, 0.3);
        transform: translateY(-1px);
    }

    .ha-pagination-btn:disabled {
        background-color: rgba(255, 255, 255, 0.1);
        color: rgba(255, 255, 255, 0.5);
        cursor: not-allowed;
        transform: none;
    }

    .ha-page-info {
        color: white;
        font-size: 13px;
        font-weight: 600;
        background-color: rgba(255, 255, 255, 0.1);
        padding: 6px 12px;
        border-radius: 4px;
        min-width: 120px;
        text-align: center;
    }

    .ha-page-numbers {
        display: flex;
        gap: 4px;
        align-items: center;
    }

    .ha-page-number-btn {
        background-color: rgba(255, 255, 255, 0.2);
        color: white;
        border: none;
        border-radius: 4px;
        padding: 6px 10px;
        cursor: pointer;
        font-size: 12px;
        font-weight: 600;
        transition: all 0.3s ease;
        min-width: 32px;
        height: 28px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .ha-page-number-btn:hover {
        background-color: rgba(255, 255, 255, 0.3);
        transform: translateY(-1px);
    }

    .ha-page-number-btn.active {
        background-color: var(--orange-color);
        color: white;
        transform: translateY(-1px);
        box-shadow: 0 2px 8px rgba(255, 152, 0, 0.3);
    }

    /* Responsive pagination */
    @media (max-width: 768px) {
        .ha-pagination-container {
            padding: 6px 8px;
            min-height: 36px;
        }

        .ha-pagination-btn {
            padding: 6px 10px;
            font-size: 12px;
            min-width: 32px;
            height: 28px;
        }

        .ha-page-info {
            font-size: 11px;
            padding: 4px 8px;
            min-width: 100px;
        }
        
        .ha-groups-search-header {
            padding: 6px 8px;
        }
        
        .ha-group-search-input {
            width: 180px;
            padding: 6px 10px;
            font-size: 12px;
        }
    }

    /* Group Items Pagination Styles */
    .ha-group-items-pagination-container {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 6px 10px;
        background-color: #7b8d9e;
        border-bottom: 1px solid #ddd;
        min-height: 36px;
        grid-column: 1 / -1;
        margin-bottom: 4px;
    }

    .ha-group-pagination-btn {
        background-color: rgba(255, 255, 255, 0.2);
        color: white;
        border: none;
        border-radius: 4px;
        padding: 6px 10px;
        cursor: pointer;
        font-size: 12px;
        transition: all 0.3s ease;
        min-width: 32px;
        height: 28px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .ha-group-pagination-btn:hover:not(:disabled) {
        background-color: rgba(255, 255, 255, 0.3);
        transform: translateY(-1px);
    }

    .ha-group-pagination-btn:disabled {
        background-color: rgba(255, 255, 255, 0.1);
        color: rgba(255, 255, 255, 0.5);
        cursor: not-allowed;
        transform: none;
    }

    .ha-group-page-info {
        color: white;
        font-size: 11px;
        font-weight: 600;
        background-color: rgba(255, 255, 255, 0.1);
        padding: 4px 8px;
        border-radius: 4px;
        min-width: 100px;
        text-align: center;
    }
    
    .ha-group-page-number-btn {
        background-color: rgba(255, 255, 255, 0.2);
        color: white;
        border: none;
        border-radius: 4px;
        padding: 6px 10px;
        cursor: pointer;
        font-size: 12px;
        font-weight: 600;
        transition: all 0.3s ease;
        min-width: 32px;
        height: 28px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .ha-group-page-number-btn:hover {
        background-color: rgba(255, 255, 255, 0.3);
        transform: translateY(-1px);
    }

    .ha-group-page-number-btn.active {
        background-color: var(--orange-color);
        color: white;
        transform: translateY(-1px);
        box-shadow: 0 2px 8px rgba(255, 152, 0, 0.3);
    }

    /* Responsive group items pagination */
    @media (max-width: 768px) {
        .ha-group-items-pagination-container {
            padding: 4px 6px;
            min-height: 32px;
        }

        .ha-group-pagination-btn {
            padding: 4px 8px;
            font-size: 10px;
            min-width: 28px;
            height: 24px;
        }

        .ha-group-page-info {
            font-size: 9px;
            padding: 3px 6px;
            min-width: 80px;
        }
        
        .ha-group-page-number-btn {
            padding: 4px 8px;
            font-size: 10px;
            min-width: 28px;
            height: 24px;
        }
    }